re-suppress the three warnings that reappeared

src/nhlua.c(1118) : warning C4702: unreachable code
src/nhlua.c(1045) : warning C4702: unreachable code
src/nhlua.c(1107) : warning C4702: unreachable code
This commit is contained in:
nhmall
2023-01-20 20:32:36 -05:00
parent 0f257ec538
commit cbb2830012
+5
View File
@@ -1030,6 +1030,9 @@ nhl_dnum_name(lua_State *L)
return 1; return 1;
} }
DISABLE_WARNING_UNREACHABLE_CODE
/* because nhl_error() does not return */
/* set or get variables which are saved and restored along with the game. /* set or get variables which are saved and restored along with the game.
nh.variable("test", 10); nh.variable("test", 10);
local ten = nh.variable("test"); */ local ten = nh.variable("test"); */
@@ -1135,6 +1138,8 @@ get_nh_lua_variables(void)
return key; return key;
} }
RESTORE_WARNING_UNREACHABLE_CODE
/* save nh_lua_variables table to file */ /* save nh_lua_variables table to file */
void void
save_luadata(NHFILE *nhfp) save_luadata(NHFILE *nhfp)