From 951d420db74048bdfdbb36131e4c6d08a0b33986 Mon Sep 17 00:00:00 2001 From: Bart van Strien Date: Tue, 20 Dec 2011 21:02:59 +0100 Subject: [PATCH] Eliminate more warnings --- src/modules/event/sdl/wrap_Event.cpp | 2 +- src/modules/graphics/opengl/wrap_Graphics.cpp | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) 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;