From c6bb3c6ce535de40b81469a1ee548dff11fc178d Mon Sep 17 00:00:00 2001 From: ThePhD Date: Fri, 15 Jun 2018 17:33:09 -0400 Subject: [PATCH] fix all warnings on GCC and get new tests and old tests back to 100% --- single/sol/sol.hpp | 6 +++--- single/sol/sol_forward.hpp | 4 ++-- sol/stack_core.hpp | 2 +- tests/test_usertypes.cpp | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/single/sol/sol.hpp b/single/sol/sol.hpp index 75a20323..b69fee07 100644 --- a/single/sol/sol.hpp +++ b/single/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 2018-06-15 20:37:27.879370 UTC -// This header was generated with sol v2.20.2 (revision 964f8e1) +// Generated 2018-06-15 21:32:45.597691 UTC +// This header was generated with sol v2.20.2 (revision ccba856) // https://github.com/ThePhD/sol2 #ifndef SOL_SINGLE_INCLUDE_HPP @@ -7894,7 +7894,7 @@ namespace sol { #if defined(SOL_SAFE_GETTER) && SOL_SAFE_GETTER template - inline auto tagged_unqualified_get(types, lua_State* L, int index, record& tracking) -> decltype(stack_detail::unchecked_get(L, index, tracking)) { + inline auto tagged_unqualified_get(types, lua_State* L, int index, record& tracking) -> decltype(stack_detail::unchecked_unqualified_get(L, index, tracking)) { auto op = unqualified_check_get(L, index, type_panic_c_str, tracking); return *std::move(op); } diff --git a/single/sol/sol_forward.hpp b/single/sol/sol_forward.hpp index 78ff2877..f60d5127 100644 --- a/single/sol/sol_forward.hpp +++ b/single/sol/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 2018-06-15 20:37:28.444838 UTC -// This header was generated with sol v2.20.2 (revision 964f8e1) +// Generated 2018-06-15 21:32:46.076150 UTC +// This header was generated with sol v2.20.2 (revision ccba856) // https://github.com/ThePhD/sol2 #ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP diff --git a/sol/stack_core.hpp b/sol/stack_core.hpp index 651c8ccf..f3a2b789 100644 --- a/sol/stack_core.hpp +++ b/sol/stack_core.hpp @@ -807,7 +807,7 @@ namespace sol { #if defined(SOL_SAFE_GETTER) && SOL_SAFE_GETTER template - inline auto tagged_unqualified_get(types, lua_State* L, int index, record& tracking) -> decltype(stack_detail::unchecked_get(L, index, tracking)) { + inline auto tagged_unqualified_get(types, lua_State* L, int index, record& tracking) -> decltype(stack_detail::unchecked_unqualified_get(L, index, tracking)) { auto op = unqualified_check_get(L, index, type_panic_c_str, tracking); return *std::move(op); } diff --git a/tests/test_usertypes.cpp b/tests/test_usertypes.cpp index bfdf9ead..4135235d 100644 --- a/tests/test_usertypes.cpp +++ b/tests/test_usertypes.cpp @@ -1806,7 +1806,7 @@ TEST_CASE("usertype/alignment", "ensure that alignment does not trigger weird al struct aligned_derived : aligned_base {}; sol::state lua; - auto f = [](aligned_base& f, float d) { + auto f = [](aligned_base&, float d) { REQUIRE(d == 5.0f); }; lua.new_usertype("Base",