mirror of
https://github.com/boostorg/gil.git
synced 2026-02-26 16:52:10 +00:00
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.
This commit is contained in:
@@ -13,12 +13,17 @@
|
||||
#include <exception>
|
||||
#include <iostream>
|
||||
|
||||
#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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user