Skip to content

Commit f0cd135

Browse files
committed
Add attributes for GCC
1 parent 4f3f496 commit f0cd135

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/benchmarks.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ using namespace std::chrono_literals;
2727
# define BOOST_DECIMAL_NO_INLINE __attribute__ ((__noinline__))
2828
#elif defined(_MSC_VER)
2929
# define BOOST_DECIMAL_NO_INLINE __declspec(noinline)
30+
#elif defined(__GNUC__)
31+
# pragma GCC diagnostic push
32+
# pragma GCC diagnostic ignored "-Wfloat-equal"
33+
# pragma GCC diagnostic ignored "-Wold-style-cast"
34+
# pragma GCC diagnostic ignored "-Wstringop-overread"
35+
# define BOOST_DECIMAL_NO_INLINE __attribute__ ((__noinline__))
3036
#endif
3137

3238
constexpr unsigned N = 2'000'000U;

0 commit comments

Comments
 (0)