From 3efbc9d3cd80c6714587e29f4da3c5792c0968e7 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 7 Dec 2019 21:58:51 +0200 Subject: [PATCH] Suppress -Wsign-compare on g++ 4.7 more forcefully --- test/mp_unique_if.cpp | 9 +++++---- test/mp_unique_if_q.cpp | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/test/mp_unique_if.cpp b/test/mp_unique_if.cpp index 33aae2b..3e579a6 100644 --- a/test/mp_unique_if.cpp +++ b/test/mp_unique_if.cpp @@ -6,6 +6,11 @@ // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt +#include + +#if BOOST_MP11_WORKAROUND( BOOST_MP11_GCC, < 40800 ) +# pragma GCC diagnostic ignored "-Wsign-compare" +#endif #include #include @@ -15,10 +20,6 @@ #include #include -#if BOOST_MP11_WORKAROUND( BOOST_MP11_GCC, < 40800 ) -# pragma GCC diagnostic ignored "-Wsign-compare" -#endif - using boost::mp11::mp_bool; #if !BOOST_MP11_WORKAROUND( BOOST_MSVC, < 1910 ) diff --git a/test/mp_unique_if_q.cpp b/test/mp_unique_if_q.cpp index 4a0c821..10fc479 100644 --- a/test/mp_unique_if_q.cpp +++ b/test/mp_unique_if_q.cpp @@ -6,6 +6,11 @@ // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt +#include + +#if BOOST_MP11_WORKAROUND( BOOST_MP11_GCC, < 40800 ) +# pragma GCC diagnostic ignored "-Wsign-compare" +#endif #include #include @@ -15,10 +20,6 @@ #include #include -#if BOOST_MP11_WORKAROUND( BOOST_MP11_GCC, < 40800 ) -# pragma GCC diagnostic ignored "-Wsign-compare" -#endif - using boost::mp11::mp_bool; #if !BOOST_MP11_WORKAROUND( BOOST_MSVC, < 1910 )