From d7ef1416a7ded2ab8c991eefc2f9638909248c32 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Thu, 20 Jul 2023 17:07:56 +0100 Subject: [PATCH] Suppress compiler warnings from fmt library See: #570 --- src/core/format.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/core/format.hpp b/src/core/format.hpp index e896293fba..dfcb7c7401 100644 --- a/src/core/format.hpp +++ b/src/core/format.hpp @@ -10,7 +10,18 @@ #ifndef FORMAT_HPP #define FORMAT_HPP +#if defined(__GNUC__) && (__GNUC__ >= 12) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Warray-bounds" +#pragma GCC diagnostic ignored "-Wstringop-overflow" +#endif /* __GNUC__ */ + #include "../3rdparty/fmt/format.h" + +#if defined(__GNUC__) && (__GNUC__ >= 12) +#pragma GCC diagnostic pop +#endif /* __GNUC__ */ + //#include "strong_typedef_type.hpp" #include