summaryrefslogtreecommitdiffstats
path: root/src/Bindings/ManualBindings.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-02-26 21:37:38 +0100
committermadmaxoft <github@xoft.cz>2014-02-26 21:37:38 +0100
commitaaddc98b46c2b918e908287f53a137d2fb5cf697 (patch)
tree0525aeeacebed1d299725d7050546f654b790424 /src/Bindings/ManualBindings.cpp
parentAPIDump: Added Geometry file to project. (diff)
downloadcuberite-aaddc98b46c2b918e908287f53a137d2fb5cf697.tar
cuberite-aaddc98b46c2b918e908287f53a137d2fb5cf697.tar.gz
cuberite-aaddc98b46c2b918e908287f53a137d2fb5cf697.tar.bz2
cuberite-aaddc98b46c2b918e908287f53a137d2fb5cf697.tar.lz
cuberite-aaddc98b46c2b918e908287f53a137d2fb5cf697.tar.xz
cuberite-aaddc98b46c2b918e908287f53a137d2fb5cf697.tar.zst
cuberite-aaddc98b46c2b918e908287f53a137d2fb5cf697.zip
Diffstat (limited to '')
-rw-r--r--src/Bindings/ManualBindings.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Bindings/ManualBindings.cpp b/src/Bindings/ManualBindings.cpp
index 2f3f3ee91..461186d3b 100644
--- a/src/Bindings/ManualBindings.cpp
+++ b/src/Bindings/ManualBindings.cpp
@@ -1321,7 +1321,9 @@ static int tolua_cPluginManager_ForEachCommand(lua_State * tolua_S)
private:
virtual bool Command(const AString & a_Command, const cPlugin * a_Plugin, const AString & a_Permission, const AString & a_HelpString) override
{
- lua_rawgeti( LuaState, LUA_REGISTRYINDEX, FuncRef); /* Push function reference */
+ UNUSED(a_Plugin);
+
+ lua_rawgeti(LuaState, LUA_REGISTRYINDEX, FuncRef); /* Push function reference */
tolua_pushcppstring(LuaState, a_Command);
tolua_pushcppstring(LuaState, a_Permission);
tolua_pushcppstring(LuaState, a_HelpString);
@@ -1396,7 +1398,10 @@ static int tolua_cPluginManager_ForEachConsoleCommand(lua_State * tolua_S)
private:
virtual bool Command(const AString & a_Command, const cPlugin * a_Plugin, const AString & a_Permission, const AString & a_HelpString) override
{
- lua_rawgeti( LuaState, LUA_REGISTRYINDEX, FuncRef); /* Push function reference */
+ UNUSED(a_Plugin);
+ UNUSED(a_Permission);
+
+ lua_rawgeti(LuaState, LUA_REGISTRYINDEX, FuncRef); /* Push function reference */
tolua_pushcppstring(LuaState, a_Command);
tolua_pushcppstring(LuaState, a_HelpString);