diff --git a/src/modules/event/sdl/wrap_Event.cpp b/src/modules/event/sdl/wrap_Event.cpp index fef631723..0a01bc1b4 100644 --- a/src/modules/event/sdl/wrap_Event.cpp +++ b/src/modules/event/sdl/wrap_Event.cpp @@ -97,7 +97,7 @@ namespace sdl return 0; } - int w_quit(lua_State * L) + int w_quit(lua_State *) { Message *m = new Message("quit"); instance->push(m); diff --git a/src/modules/graphics/opengl/wrap_Graphics.cpp b/src/modules/graphics/opengl/wrap_Graphics.cpp index efeef4116..a9691471e 100644 --- a/src/modules/graphics/opengl/wrap_Graphics.cpp +++ b/src/modules/graphics/opengl/wrap_Graphics.cpp @@ -507,9 +507,6 @@ namespace opengl int w_setFont(lua_State * L) { - // The second parameter is an optional int. - int size = luaL_optint(L, 2, 12); - Font * font = luax_checktype(L, 1, "Font", GRAPHICS_FONT_T); instance->setFont(font); return 0;