diff --git a/sol/call.hpp b/sol/call.hpp index 430163b4..d8039548 100644 --- a/sol/call.hpp +++ b/sol/call.hpp @@ -285,7 +285,7 @@ namespace call_detail { template struct agnostic_lua_call_wrapper, is_index, is_variable, C> { - static int call(lua_State* L, bases&) { + static int call(lua_State*, bases&) { // Uh. How did you even call this, lul return 0; } diff --git a/sol/stack.hpp b/sol/stack.hpp index 29fc1518..9f9e28e7 100644 --- a/sol/stack.hpp +++ b/sol/stack.hpp @@ -167,7 +167,7 @@ inline int call_lua(lua_State* L, int start, Fx&& fx, FxArgs&&... fxargs) { typedef lua_bind_traits> traits_type; typedef typename traits_type::args_list args_list; typedef typename traits_type::returns_list returns_list; - return call_into_lua(returns_list(), args_list(), start, std::forward(fx), std::forward(fxargs)...); + return call_into_lua(returns_list(), args_list(), L, start, std::forward(fx), std::forward(fxargs)...); } inline call_syntax get_call_syntax(lua_State* L, const std::string& key, int index = -2) { diff --git a/sol/wrapper.hpp b/sol/wrapper.hpp index df637263..791503f6 100644 --- a/sol/wrapper.hpp +++ b/sol/wrapper.hpp @@ -91,7 +91,7 @@ namespace sol { } template - static void call(Fx&& fx, object_type& mem, Arg&& arg, Args&&... args) { + static void call(Fx&& fx, object_type& mem, Arg&& arg, Args&&...) { (mem.*fx) = std::forward(arg); }