Merge pull request #43 from boostorg/pr/fix-gcc7-warnings

Disable g++-7 warnings in a proper manner
This commit is contained in:
jzmaddock
2017-07-16 19:00:21 +01:00
committed by GitHub
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