Disable g++-7 warnings in a proper manner

This commit is contained in:
Peter Dimov
2017-07-16 02:06:18 +03:00
parent 64421a443b
commit 7d7322655e
4 changed files with 12 additions and 2 deletions

View File

@ -16,8 +16,6 @@ project : requirements
# set warnings as errors for those compilers we know we get warning free:
<toolset>gcc:<cxxflags>-Wextra
<toolset>gcc:<cxxflags>-Wno-uninitialized
<toolset>gcc:<cxxflags>-Wno-int-in-bool-context
<toolset>gcc:<cxxflags>-Wno-bool-operation
<toolset>gcc:<warnings-as-errors>on
<toolset>intel:<warnings-as-errors>on
<toolset>sun:<warnings-as-errors>on

View File

@ -3,6 +3,10 @@
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#if defined(__GNUC__) && (__GNUC__ >= 7)
#pragma GCC diagnostic ignored "-Wbool-operation"
#endif
#ifdef TEST_STD
# include <type_traits>
#else

View File

@ -3,6 +3,10 @@
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#if defined(__GNUC__) && (__GNUC__ >= 7)
#pragma GCC diagnostic ignored "-Wint-in-bool-context"
#endif
#ifdef TEST_STD
# include <type_traits>
#else

View File

@ -3,6 +3,10 @@
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#if defined(__GNUC__) && (__GNUC__ >= 7)
#pragma GCC diagnostic ignored "-Wint-in-bool-context"
#endif
#ifdef TEST_STD
# include <type_traits>
#else