From 8fb653c9f48b81aa2ef986ac36bdb81c1fd5a4e9 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 20 Oct 2022 02:23:29 +0200 Subject: a --- compat/assert.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'compat') diff --git a/compat/assert.hpp b/compat/assert.hpp index 04c5acbe..24070b15 100644 --- a/compat/assert.hpp +++ b/compat/assert.hpp @@ -6,6 +6,11 @@ namespace floormat::detail { +#ifdef __GNUG__ +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wformat-nonliteral" +#endif + template constexpr void emit_debug(const char(&pfx)[M], const char(&fmt)[N], Xs... xs) noexcept { @@ -20,6 +25,10 @@ constexpr void emit_debug(const char(&pfx)[M], const char(&fmt)[N], Xs... xs) no } } +#ifdef __GNUG__ +# pragma GCC diagnostic pop +#endif + template [[noreturn]] constexpr inline void abort(const char (&fmt)[N], Xs... xs) noexcept -- cgit v1.2.3