]> granicus.if.org Git - nethack/commitdiff
place a comment to identify the unreachable code
authornhmall <nhmall@nethack.org>
Sat, 21 Jan 2023 01:41:03 +0000 (20:41 -0500)
committernhmall <nhmall@nethack.org>
Sat, 21 Jan 2023 01:41:03 +0000 (20:41 -0500)
src/nhlua.c

index 7f17bb9d4554f8dd5632e81bf54fce060ae0987c..20fd28919862beb4029fabd4fbb85f46712237ea 100644 (file)
@@ -1045,6 +1045,7 @@ nhl_variable(lua_State *L)
 
     if (!gl.luacore) {
         nhl_error(L, "nh luacore not inited");
+        /*NOTREACHED*/
         return 0;
     }
 
@@ -1118,6 +1119,7 @@ get_nh_lua_variables(void)
 
     if (!gl.luacore) {
         nhl_error(gl.luacore, "nh luacore not inited");
+        /*NOTREACHED*/
         return key;
     }