From 2a0d3eea64e3cf229c8df60361559e7931c2180c Mon Sep 17 00:00:00 2001 From: nhmall Date: Sun, 25 Jan 2026 11:49:36 -0500 Subject: [PATCH] a warning bit Visual Studio build: src/nhlsel.c(970) : warning C4702: unreachable code --- src/nhlsel.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/nhlsel.c b/src/nhlsel.c index 79ece1aae..b06b53545 100644 --- a/src/nhlsel.c +++ b/src/nhlsel.c @@ -910,6 +910,8 @@ l_selection_gradient(lua_State *L) return 1; } +DISABLE_WARNING_UNREACHABLE_CODE + /* sel:iterate(function(x,y) ... end); * The x, y coordinates passed to the function are map- or room-relative * rather than absolute, unless there has been no previous map or room @@ -970,6 +972,8 @@ l_selection_size_description(lua_State *L) return 0; } +RESTORE_WARNING_UNREACHABLE_CODE + static const struct luaL_Reg l_selection_methods[] = { { "new", l_selection_new }, { "clone", l_selection_clone },