Test with warnings=extra, warnings-as-errors=on

This commit is contained in:
Peter Dimov
2021-12-16 04:59:39 +02:00
parent bf8898c95f
commit e47b6a51e4
3 changed files with 17 additions and 0 deletions

View File

@ -9,6 +9,15 @@
import testing ; import testing ;
project
: default-build
<warnings>extra
: requirements
<toolset>msvc:<warnings-as-errors>on
<toolset>gcc:<warnings-as-errors>on
<toolset>clang:<warnings-as-errors>on
;
run function_test.cpp ; run function_test.cpp ;
# /usr/include/c++/4.4/bits/shared_ptr.h:146: error: cannot use typeid with -fno-rtti # /usr/include/c++/4.4/bits/shared_ptr.h:146: error: cannot use typeid with -fno-rtti
run function_test.cpp : : : <rtti>off <toolset>gcc-4.4.7,<cxxstd>0x:<build>no : function_test_no_rtti ; run function_test.cpp : : : <rtti>off <toolset>gcc-4.4.7,<cxxstd>0x:<build>no : function_test_no_rtti ;

View File

@ -7,6 +7,10 @@
// For more information, see http://www.boost.org // For more information, see http://www.boost.org
#if defined(__clang__)
# pragma clang diagnostic ignored "-Wself-assign-overloaded"
#endif
#include <boost/function.hpp> #include <boost/function.hpp>
#include <boost/core/lightweight_test.hpp> #include <boost/core/lightweight_test.hpp>
#include <functional> #include <functional>

View File

@ -7,6 +7,10 @@
// For more information, see http://www.boost.org // For more information, see http://www.boost.org
#if defined(__clang__)
# pragma clang diagnostic ignored "-Wself-assign-overloaded"
#endif
#include <boost/function.hpp> #include <boost/function.hpp>
#include <boost/core/lightweight_test.hpp> #include <boost/core/lightweight_test.hpp>
#include <functional> #include <functional>