fix all warnings on GCC and get new tests and old tests back to 100%

This commit is contained in:
ThePhD 2018-06-15 17:33:09 -04:00
parent ccba856216
commit c6bb3c6ce5
4 changed files with 7 additions and 7 deletions

View File

@ -20,8 +20,8 @@
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// This file was generated with a script. // This file was generated with a script.
// Generated 2018-06-15 20:37:27.879370 UTC // Generated 2018-06-15 21:32:45.597691 UTC
// This header was generated with sol v2.20.2 (revision 964f8e1) // This header was generated with sol v2.20.2 (revision ccba856)
// https://github.com/ThePhD/sol2 // https://github.com/ThePhD/sol2
#ifndef SOL_SINGLE_INCLUDE_HPP #ifndef SOL_SINGLE_INCLUDE_HPP
@ -7894,7 +7894,7 @@ namespace sol {
#if defined(SOL_SAFE_GETTER) && SOL_SAFE_GETTER #if defined(SOL_SAFE_GETTER) && SOL_SAFE_GETTER
template <typename T> template <typename T>
inline auto tagged_unqualified_get(types<T>, lua_State* L, int index, record& tracking) -> decltype(stack_detail::unchecked_get<T>(L, index, tracking)) { inline auto tagged_unqualified_get(types<T>, lua_State* L, int index, record& tracking) -> decltype(stack_detail::unchecked_unqualified_get<T>(L, index, tracking)) {
auto op = unqualified_check_get<T>(L, index, type_panic_c_str, tracking); auto op = unqualified_check_get<T>(L, index, type_panic_c_str, tracking);
return *std::move(op); return *std::move(op);
} }

View File

@ -20,8 +20,8 @@
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// This file was generated with a script. // This file was generated with a script.
// Generated 2018-06-15 20:37:28.444838 UTC // Generated 2018-06-15 21:32:46.076150 UTC
// This header was generated with sol v2.20.2 (revision 964f8e1) // This header was generated with sol v2.20.2 (revision ccba856)
// https://github.com/ThePhD/sol2 // https://github.com/ThePhD/sol2
#ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP #ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP

View File

@ -807,7 +807,7 @@ namespace sol {
#if defined(SOL_SAFE_GETTER) && SOL_SAFE_GETTER #if defined(SOL_SAFE_GETTER) && SOL_SAFE_GETTER
template <typename T> template <typename T>
inline auto tagged_unqualified_get(types<T>, lua_State* L, int index, record& tracking) -> decltype(stack_detail::unchecked_get<T>(L, index, tracking)) { inline auto tagged_unqualified_get(types<T>, lua_State* L, int index, record& tracking) -> decltype(stack_detail::unchecked_unqualified_get<T>(L, index, tracking)) {
auto op = unqualified_check_get<T>(L, index, type_panic_c_str, tracking); auto op = unqualified_check_get<T>(L, index, type_panic_c_str, tracking);
return *std::move(op); return *std::move(op);
} }

View File

@ -1806,7 +1806,7 @@ TEST_CASE("usertype/alignment", "ensure that alignment does not trigger weird al
struct aligned_derived : aligned_base {}; struct aligned_derived : aligned_base {};
sol::state lua; sol::state lua;
auto f = [](aligned_base& f, float d) { auto f = [](aligned_base&, float d) {
REQUIRE(d == 5.0f); REQUIRE(d == 5.0f);
}; };
lua.new_usertype<aligned_base>("Base", lua.new_usertype<aligned_base>("Base",