clean up more warnings, wew

This commit is contained in:
ThePhD 2018-12-27 13:02:31 -05:00
parent e21614d7f6
commit 0a21fbf3f0
No known key found for this signature in database
GPG Key ID: 1509DB1C0F702BFA
4 changed files with 6 additions and 17 deletions

View File

@ -69,19 +69,7 @@ matrix:
PLATFORM=x64
CI=true
# LLVM 3.6.x -> 5.0.x
- env:
- LUA_VERSION=5.3.5
LLVM_VERSION=3.6.2
PLATFORM=x64
CI=true
- env:
- LUA_VERSION=5.3.5
LLVM_VERSION=3.7.1
PLATFORM=x64
CI=true
# LLVM 3.9.x -> 5.0.x
- env:
- LUA_VERSION=5.3.5
LLVM_VERSION=3.9.1

View File

@ -84,7 +84,8 @@ function (MAKE_EXAMPLE example_source_file example_suffix target_sol)
_CRT_SECURE_NO_WARNINGS _CRT_SECURE_NO_DEPRECATE )
else()
target_compile_options(${example_name}
PRIVATE -std=c++1z -Wno-noexcept-type -Wno-unknown-warning -Wno-unknown-warning-option
PRIVATE -std=c++1z
-Wno-noexcept-type -Wno-unknown-warning -Wno-unknown-warning-option
-Wall -Wextra -Wpedantic -pedantic -pedantic-errors)
endif()

View File

@ -61,7 +61,8 @@ function(make_require_from_dll_example target_lib example_lib_name_suffix)
_CRT_SECURE_NO_WARNINGS _CRT_SECURE_NO_DEPRECATE)
else()
target_compile_options(${example_lib_name}
PRIVATE -Wno-noexcept-type -Wno-unknown-warning -Wno-unknown-warning-option
PRIVATE -std=c++1z
-Wno-noexcept-type -Wno-unknown-warning -Wno-unknown-warning-option
-Wall -Wextra -Wpedantic -pedantic -pedantic-errors)
if (IS_X86)
target_compile_options(${example_lib_name} BEFORE PRIVATE -m32)

View File

@ -10,8 +10,7 @@ namespace my_object {
sol::table module = lua.create_table();
module.new_usertype<test>("test",
sol::constructors<test(), test(int)>(),
"value", &test::value
);
"value", &test::value);
return module;
}