Add -Wconversion et al to test/Jamfile

This commit is contained in:
Peter Dimov
2023-06-25 16:05:24 +03:00
parent c5f734275b
commit 10e161cc56
2 changed files with 17 additions and 8 deletions
+15 -6
View File
@@ -8,12 +8,21 @@
import testing ;
project : requirements
<warnings>extra
<toolset>msvc:<warnings-as-errors>on
<toolset>clang:<warnings-as-errors>on
<toolset>gcc:<warnings-as-errors>on
<toolset>gcc:<cxxflags>-Wshadow ;
local gcc-flags = -Wsign-promo -Wconversion -Wsign-conversion -Wshadow ;
project
: requirements
<warnings>extra
<toolset>msvc:<warnings-as-errors>on
<toolset>clang:<warnings-as-errors>on
<toolset>gcc:<warnings-as-errors>on
<toolset>gcc:<cxxflags>$(gcc-flags)
<toolset>clang:<cxxflags>$(gcc-flags)
;
run throw_exception_test.cpp ;
run throw_exception_no_exceptions_test.cpp ;