From a0137db344322bd4aac0412a5240828f4b7572a3 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 11 Jan 2019 07:21:13 +0200 Subject: [PATCH] Disable g++ 4.7 sign-compare warnings --- test/mp_less.cpp | 5 +++++ test/mp_max.cpp | 5 +++++ test/mp_min.cpp | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/test/mp_less.cpp b/test/mp_less.cpp index 932c285..0e72faf 100644 --- a/test/mp_less.cpp +++ b/test/mp_less.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 diff --git a/test/mp_max.cpp b/test/mp_max.cpp index 6ea6e73..577d26b 100644 --- a/test/mp_max.cpp +++ b/test/mp_max.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 diff --git a/test/mp_min.cpp b/test/mp_min.cpp index 1c2cd6f..a232098 100644 --- a/test/mp_min.cpp +++ b/test/mp_min.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