diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-20 02:23:29 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-20 02:23:29 +0200 |
commit | 8fb653c9f48b81aa2ef986ac36bdb81c1fd5a4e9 (patch) | |
tree | c22b0610ae43d988d6b16e048158973d6d37bd17 /compat | |
parent | dcac560e53d82ca8d7c8952b0a7c695ae43d09c2 (diff) |
a
Diffstat (limited to 'compat')
-rw-r--r-- | compat/assert.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
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<std::size_t N, std::size_t M, typename... Xs> 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<std::size_t N, typename...Xs> [[noreturn]] constexpr inline void abort(const char (&fmt)[N], Xs... xs) noexcept |