From cbb2830012e350a1598c86f7c9fc987c9db105f5 Mon Sep 17 00:00:00 2001 From: nhmall Date: Fri, 20 Jan 2023 20:32:36 -0500 Subject: [PATCH] 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 --- src/nhlua.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/nhlua.c b/src/nhlua.c index 0832ea210..7f17bb9d4 100644 --- a/src/nhlua.c +++ b/src/nhlua.c @@ -1030,6 +1030,9 @@ nhl_dnum_name(lua_State *L) 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. nh.variable("test", 10); local ten = nh.variable("test"); */ @@ -1135,6 +1138,8 @@ get_nh_lua_variables(void) return key; } +RESTORE_WARNING_UNREACHABLE_CODE + /* save nh_lua_variables table to file */ void save_luadata(NHFILE *nhfp)