Commit dbe12a6b authored by Namkhai B's avatar Namkhai B Committed by Max Kellermann

util/RuntimeError: Disable format-security for gcc

Fixes building under GCC 11
parent d3a680cc
......@@ -35,7 +35,7 @@
#include <stdio.h>
#ifdef __clang__
#if defined(__clang__) || defined(__GNUC__)
#pragma GCC diagnostic push
// TODO: fix this warning properly
#pragma GCC diagnostic ignored "-Wformat-security"
......@@ -59,7 +59,7 @@ FormatInvalidArgument(const char *fmt, Args&&... args) noexcept
return std::invalid_argument(buffer);
}
#ifdef __clang__
#if defined(__clang__) || defined(__GNUC__)
#pragma GCC diagnostic pop
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment