From 4f91ee2e9666793505e235ee9a5e0ce7630b92e7 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 7 Dec 2019 21:01:25 +0200 Subject: [PATCH] Suppress -Wsign-compare on g++ 4.7 --- test/mp_unique_if.cpp | 4 ++++ test/mp_unique_if_q.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/test/mp_unique_if.cpp b/test/mp_unique_if.cpp index d409a19..33aae2b 100644 --- a/test/mp_unique_if.cpp +++ b/test/mp_unique_if.cpp @@ -15,6 +15,10 @@ #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 c116aec..4a0c821 100644 --- a/test/mp_unique_if_q.cpp +++ b/test/mp_unique_if_q.cpp @@ -15,6 +15,10 @@ #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 )