diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-26 01:00:55 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-26 01:00:55 +0200 |
commit | c8c70f05d00ef85c3e95e6d9f28756c85db785ba (patch) | |
tree | 52023bee6bc0f3a3039261b2b98254cc94e0d50b /compat | |
parent | 3716c496b975e0205e0cb65466e02e919ab4741e (diff) |
shut up -Wdouble-promotion for debug log macros
Diffstat (limited to 'compat')
-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); \ } \ |