瀏覽代碼

Eliminate more warnings

Bart van Strien 14 年之前
父節點
當前提交
951d420db7
共有 2 個文件被更改,包括 1 次插入4 次删除
  1. 1 1
      src/modules/event/sdl/wrap_Event.cpp
  2. 0 3
      src/modules/graphics/opengl/wrap_Graphics.cpp

+ 1 - 1
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);

+ 0 - 3
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<Font>(L, 1, "Font", GRAPHICS_FONT_T);
 		instance->setFont(font);
 		return 0;