From 77d5f048a48e6e695d8064fab4af46fa0e417f64 Mon Sep 17 00:00:00 2001 From: nhmall Date: Fri, 20 Jan 2023 20:41:03 -0500 Subject: [PATCH] place a comment to identify the unreachable code --- src/nhlua.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nhlua.c b/src/nhlua.c index 7f17bb9d4..20fd28919 100644 --- a/src/nhlua.c +++ b/src/nhlua.c @@ -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; }