a warning bit

Visual Studio build:
src/nhlsel.c(970) : warning C4702: unreachable code
This commit is contained in:
nhmall
2026-01-25 11:49:36 -05:00
parent 2dc95dae42
commit 2a0d3eea64

View File

@@ -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 },