a warning bit
Visual Studio build: src/nhlsel.c(970) : warning C4702: unreachable code
This commit is contained in:
@@ -910,6 +910,8 @@ l_selection_gradient(lua_State *L)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DISABLE_WARNING_UNREACHABLE_CODE
|
||||||
|
|
||||||
/* sel:iterate(function(x,y) ... end);
|
/* sel:iterate(function(x,y) ... end);
|
||||||
* The x, y coordinates passed to the function are map- or room-relative
|
* 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
|
* 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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RESTORE_WARNING_UNREACHABLE_CODE
|
||||||
|
|
||||||
static const struct luaL_Reg l_selection_methods[] = {
|
static const struct luaL_Reg l_selection_methods[] = {
|
||||||
{ "new", l_selection_new },
|
{ "new", l_selection_new },
|
||||||
{ "clone", l_selection_clone },
|
{ "clone", l_selection_clone },
|
||||||
|
|||||||
Reference in New Issue
Block a user