From 7cce3e4d42c08376f7e8c98eb41675ea1fa394e0 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Fri, 5 Apr 2019 21:26:49 -0400 Subject: [PATCH] unused parameters are the devil --- single/include/sol/forward.hpp | 4 ++-- single/include/sol/sol.hpp | 4 ++-- tests/runtime_tests/source/usertypes.inheritance.cpp | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/single/include/sol/forward.hpp b/single/include/sol/forward.hpp index 02229446..662b83af 100644 --- a/single/include/sol/forward.hpp +++ b/single/include/sol/forward.hpp @@ -20,8 +20,8 @@ // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // This file was generated with a script. -// Generated 2019-04-05 22:56:20.263143 UTC -// This header was generated with sol v3.0.1-beta2 (revision fbf9484) +// Generated 2019-04-06 01:26:37.932828 UTC +// This header was generated with sol v3.0.1-beta2 (revision 2f76078) // https://github.com/ThePhD/sol2 #ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP diff --git a/single/include/sol/sol.hpp b/single/include/sol/sol.hpp index 755ec673..eaa1e0e9 100644 --- a/single/include/sol/sol.hpp +++ b/single/include/sol/sol.hpp @@ -20,8 +20,8 @@ // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // This file was generated with a script. -// Generated 2019-04-05 22:56:19.784998 UTC -// This header was generated with sol v3.0.1-beta2 (revision fbf9484) +// Generated 2019-04-06 01:26:37.624327 UTC +// This header was generated with sol v3.0.1-beta2 (revision 2f76078) // https://github.com/ThePhD/sol2 #ifndef SOL_SINGLE_INCLUDE_HPP diff --git a/tests/runtime_tests/source/usertypes.inheritance.cpp b/tests/runtime_tests/source/usertypes.inheritance.cpp index d3d8e50d..3e23a8de 100644 --- a/tests/runtime_tests/source/usertypes.inheritance.cpp +++ b/tests/runtime_tests/source/usertypes.inheritance.cpp @@ -290,13 +290,13 @@ TEST_CASE("inheritance/usertype derived non-hiding", "usertype classes must play TEST_CASE("inheritance/bad_base-class", "check to make sure bad/unregistered base classes do not blow up usertypes") { struct a { - a(sol::this_state ts, sol::this_environment te) { + a(sol::this_state ts, sol::this_environment) { lua_State* L = ts; ud = sol::userdata(L, -2); } - sol::object get_property_lua(const char* name, sol::this_state s) { + sol::object get_property_lua(const char* name, sol::this_state) { return props[name]; } @@ -314,7 +314,7 @@ TEST_CASE("inheritance/bad_base-class", "check to make sure bad/unregistered bas }; struct b : public a, public nofun { - b(sol::this_state ts, sol::this_environment te, int ab) : a(ts, te) { + b(sol::this_state ts, sol::this_environment te, int) : a(ts, te) { sol::state_view lua = ts; lua.script("function break_crap(b_obj) b_obj.test3 = {} end"); @@ -323,7 +323,7 @@ TEST_CASE("inheritance/bad_base-class", "check to make sure bad/unregistered bas REQUIRE_FALSE(result.has_value()); } - b(sol::this_state ts, sol::this_environment te, int ab, int bc) : a(ts, te) { + b(sol::this_state ts, sol::this_environment te, int, int) : a(ts, te) { } ~b() { }