diff --git a/cmake/Includes/Project.cmake b/cmake/Includes/Project.cmake index 8af74007..faf10f0d 100644 --- a/cmake/Includes/Project.cmake +++ b/cmake/Includes/Project.cmake @@ -75,3 +75,4 @@ check_compiler_diagnostic(unknown-warning-option) check_compiler_diagnostic(microsoft-cast) check_compiler_diagnostic(noexcept-type) check_compiler_diagnostic(unreachable-code MSVC 4702) +check_compiler_diagnostic(padding-from-alignment MSVC 4324) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 27731fe1..59f1caa6 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -44,6 +44,8 @@ function(sol2_add_example_properties target-name) ${--allow-unknown-warning-option} ${--allow-noexcept-type} ${--allow-microsoft-cast} + ${--allow-unreachable-code} + ${--allow-padding-from-alignment} ) target_compile_definitions(${target-name} diff --git a/tests/numerics/source/~syncthing~negative_size_t.cpp.tmp b/tests/numerics/source/~syncthing~negative_size_t.cpp.tmp deleted file mode 100644 index e0cea6f5..00000000 Binary files a/tests/numerics/source/~syncthing~negative_size_t.cpp.tmp and /dev/null differ