From c8c70f05d00ef85c3e95e6d9f28756c85db785ba Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 26 Oct 2022 01:00:55 +0200 Subject: shut up -Wdouble-promotion for debug log macros --- compat/assert.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'compat/assert.hpp') 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); \ } \ -- cgit v1.2.3