Skip to content

Commit 53f2d91

Browse files
committed
Ignore float equal warning propagating up from {fmt}
1 parent 524a583 commit 53f2d91

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

include/boost/decimal/fmt_format.hpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,19 @@
99

1010
#define BOOST_DECIMAL_HAS_FMTLIB_SUPPORT
1111

12+
#ifdef __GNUC__
13+
# pragma GCC diagnostic push
14+
# pragma GCC diagnostic ignored "-Wfloat-equal"
15+
#endif
16+
1217
#include <fmt/format.h>
1318
#include <fmt/base.h>
1419
#include <fmt/xchar.h>
20+
21+
#ifdef __GNUC__
22+
# pragma GCC diagnostic pop
23+
#endif
24+
1525
#include <boost/decimal/detail/config.hpp>
1626
#include <boost/decimal/detail/locale_conversion.hpp>
1727
#include <boost/decimal/charconv.hpp>

0 commit comments

Comments
 (0)