Restrict warning-as-errors=on to msvc/gcc/clang; add -Wshadow on gcc

This commit is contained in:
Peter Dimov
2019-12-08 20:55:42 +02:00
parent fe38fbc5cf
commit 81e3072d04

View File

@ -8,14 +8,19 @@
import testing ;
project : requirements <warnings>extra <warnings-as-errors>on ;
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 ;
run throw_exception_test.cpp ;
run throw_exception_no_exceptions_test.cpp ;
run throw_exception_no_integration_test.cpp ;
run throw_exception_no_both_test.cpp ;
compile-fail throw_exception_fail.cpp : -<warnings-as-errors>on ;
compile-fail throw_exception_fail.cpp : <warnings-as-errors>off ;
run throw_exception_test2.cpp ;
run throw_exception_test3.cpp ;