From 38bd9e93a252cb2dd5ace6b0132514edff38b504 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Sun, 18 Jan 2015 23:29:19 -0500 Subject: Fix all warnings and remove -Wno-unused-but-set cflag --- src/script/lua_api/l_mainmenu.cpp | 4 ---- src/script/lua_api/l_mapgen.h | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'src/script/lua_api') diff --git a/src/script/lua_api/l_mainmenu.cpp b/src/script/lua_api/l_mainmenu.cpp index c8389d889..0f903ba5e 100644 --- a/src/script/lua_api/l_mainmenu.cpp +++ b/src/script/lua_api/l_mainmenu.cpp @@ -1025,10 +1025,6 @@ int ModApiMainMenu::l_download_file(lua_State *L) /******************************************************************************/ int ModApiMainMenu::l_get_video_drivers(lua_State *L) { - unsigned int index = 1; - lua_newtable(L); - int top = lua_gettop(L); - std::vector drivers = porting::getSupportedVideoDrivers(); diff --git a/src/script/lua_api/l_mapgen.h b/src/script/lua_api/l_mapgen.h index dd96a009e..e17d1b85a 100644 --- a/src/script/lua_api/l_mapgen.h +++ b/src/script/lua_api/l_mapgen.h @@ -23,7 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "lua_api/l_base.h" class INodeDefManager; -class NodeResolveInfo; +struct NodeResolveInfo; class DecoSimple; class DecoSchematic; -- cgit v1.2.3