mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
clean up more warnings, wew
This commit is contained in:
parent
e21614d7f6
commit
0a21fbf3f0
14
.travis.yml
14
.travis.yml
|
@ -69,19 +69,7 @@ matrix:
|
||||||
PLATFORM=x64
|
PLATFORM=x64
|
||||||
CI=true
|
CI=true
|
||||||
|
|
||||||
# LLVM 3.6.x -> 5.0.x
|
# LLVM 3.9.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
|
|
||||||
|
|
||||||
- env:
|
- env:
|
||||||
- LUA_VERSION=5.3.5
|
- LUA_VERSION=5.3.5
|
||||||
LLVM_VERSION=3.9.1
|
LLVM_VERSION=3.9.1
|
||||||
|
|
|
@ -84,7 +84,8 @@ function (MAKE_EXAMPLE example_source_file example_suffix target_sol)
|
||||||
_CRT_SECURE_NO_WARNINGS _CRT_SECURE_NO_DEPRECATE )
|
_CRT_SECURE_NO_WARNINGS _CRT_SECURE_NO_DEPRECATE )
|
||||||
else()
|
else()
|
||||||
target_compile_options(${example_name}
|
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)
|
-Wall -Wextra -Wpedantic -pedantic -pedantic-errors)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -61,7 +61,8 @@ function(make_require_from_dll_example target_lib example_lib_name_suffix)
|
||||||
_CRT_SECURE_NO_WARNINGS _CRT_SECURE_NO_DEPRECATE)
|
_CRT_SECURE_NO_WARNINGS _CRT_SECURE_NO_DEPRECATE)
|
||||||
else()
|
else()
|
||||||
target_compile_options(${example_lib_name}
|
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)
|
-Wall -Wextra -Wpedantic -pedantic -pedantic-errors)
|
||||||
if (IS_X86)
|
if (IS_X86)
|
||||||
target_compile_options(${example_lib_name} BEFORE PRIVATE -m32)
|
target_compile_options(${example_lib_name} BEFORE PRIVATE -m32)
|
||||||
|
|
|
@ -10,8 +10,7 @@ namespace my_object {
|
||||||
sol::table module = lua.create_table();
|
sol::table module = lua.create_table();
|
||||||
module.new_usertype<test>("test",
|
module.new_usertype<test>("test",
|
||||||
sol::constructors<test(), test(int)>(),
|
sol::constructors<test(), test(int)>(),
|
||||||
"value", &test::value
|
"value", &test::value);
|
||||||
);
|
|
||||||
|
|
||||||
return module;
|
return module;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user