summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-20 02:23:29 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-20 02:23:29 +0200
commit8fb653c9f48b81aa2ef986ac36bdb81c1fd5a4e9 (patch)
treec22b0610ae43d988d6b16e048158973d6d37bd17 /compat
parentdcac560e53d82ca8d7c8952b0a7c695ae43d09c2 (diff)
a
Diffstat (limited to 'compat')
-rw-r--r--compat/assert.hpp9
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