summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
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