mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
fix all warnings on GCC and get new tests and old tests back to 100%
This commit is contained in:
parent
ccba856216
commit
c6bb3c6ce5
@ -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 <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);
|
||||
return *std::move(op);
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -807,7 +807,7 @@ namespace sol {
|
||||
|
||||
#if defined(SOL_SAFE_GETTER) && SOL_SAFE_GETTER
|
||||
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);
|
||||
return *std::move(op);
|
||||
}
|
||||
|
@ -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<aligned_base>("Base",
|
||||
|
Loading…
x
Reference in New Issue
Block a user