diff options
Diffstat (limited to 'compat/assert.hpp')
-rw-r--r-- | compat/assert.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compat/assert.hpp b/compat/assert.hpp index eb135aa9..0acaa613 100644 --- a/compat/assert.hpp +++ b/compat/assert.hpp @@ -14,7 +14,10 @@ if (!std::is_constant_evaluated()) { \ if constexpr (sizeof(pfx) > 1) \ std::fputs((pfx), stderr); \ + _Pragma( "GCC diagnostic push" ) \ + _Pragma( "GCC diagnostic ignored \"-Wdouble-promotion\"" ) \ std::fprintf(stderr, __VA_ARGS__); \ + _Pragma( "GCC diagnostic pop" ) \ std::fputc('\n', stderr); \ std::fflush(stderr); \ } \ |