aboutsummaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2015-01-18 23:29:19 -0500
committerkwolekr <kwolekr@minetest.net>2015-01-18 23:29:19 -0500
commit38bd9e93a252cb2dd5ace6b0132514edff38b504 (patch)
tree07a891ba1f709cdb1651e7169a0e0a7f80425552 /src/script
parente36681101efdfec3ed9cf9d70f7c5296c4124cd6 (diff)
downloadminetest-38bd9e93a252cb2dd5ace6b0132514edff38b504.tar.gz
minetest-38bd9e93a252cb2dd5ace6b0132514edff38b504.tar.bz2
minetest-38bd9e93a252cb2dd5ace6b0132514edff38b504.zip
Fix all warnings and remove -Wno-unused-but-set cflag
Diffstat (limited to 'src/script')
-rw-r--r--src/script/lua_api/l_mainmenu.cpp4
-rw-r--r--src/script/lua_api/l_mapgen.h2
2 files changed, 1 insertions, 5 deletions
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<irr::video::E_DRIVER_TYPE> 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;