Browse Source

Eliminate more warnings

Bart van Strien 13 years ago
parent
commit
951d420db7

+ 1 - 1
src/modules/event/sdl/wrap_Event.cpp

@@ -97,7 +97,7 @@ namespace sdl
 		return 0;
 		return 0;
 	}
 	}
 
 
-	int w_quit(lua_State * L)
+	int w_quit(lua_State *)
 	{
 	{
 		Message *m = new Message("quit");
 		Message *m = new Message("quit");
 		instance->push(m);
 		instance->push(m);

+ 0 - 3
src/modules/graphics/opengl/wrap_Graphics.cpp

@@ -507,9 +507,6 @@ namespace opengl
 
 
 	int w_setFont(lua_State * L)
 	int w_setFont(lua_State * L)
 	{
 	{
-		// The second parameter is an optional int.
-		int size = luaL_optint(L, 2, 12);
-
 		Font * font = luax_checktype<Font>(L, 1, "Font", GRAPHICS_FONT_T);
 		Font * font = luax_checktype<Font>(L, 1, "Font", GRAPHICS_FONT_T);
 		instance->setFont(font);
 		instance->setFont(font);
 		return 0;
 		return 0;