From 2dc8ad8fac0a390d2e2e68aee8e6e4f4b09a7c3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20=C5=81oskot?= Date: Mon, 4 Feb 2019 23:09:17 +0100 Subject: [PATCH] Ignore -Wfloat-equal warning in old test code This ignores the warning in the test code only, not in GIL headers and the old test has compared float-point numbers with == or != forever, so this does not ignore anything new. --- test/channel.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/channel.cpp b/test/channel.cpp index 8757a0e2f..22882d906 100644 --- a/test/channel.cpp +++ b/test/channel.cpp @@ -13,12 +13,17 @@ #include #include -#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400) +#if defined(BOOST_CLANG) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wfloat-equal" +#elif BOOST_GCC >= 40700 +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wfloat-equal" +#elif BOOST_WORKAROUND(BOOST_MSVC, >= 1400) #pragma warning(push) #pragma warning(disable:4512) //assignment operator could not be generated #endif - using namespace boost::gil; using namespace std;