From 257c5ec4a6f8b9b8c494c4be725e68ca39fec3cb Mon Sep 17 00:00:00 2001 From: firewave Date: Wed, 4 Dec 2024 13:14:17 +0100 Subject: [PATCH] xml.h: fixed `-Wpragmas` GCC warning --- lib/xml.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/xml.h b/lib/xml.h index faf121dcdf4..c5bc8461978 100644 --- a/lib/xml.h +++ b/lib/xml.h @@ -22,7 +22,9 @@ #include "config.h" #include "path.h" +#if defined(__GNUC__) && (__GNUC__ >= 14) SUPPRESS_WARNING_GCC_PUSH("-Wsuggest-attribute=returns_nonnull") +#endif SUPPRESS_WARNING_CLANG_PUSH("-Wzero-as-null-pointer-constant") SUPPRESS_WARNING_CLANG_PUSH("-Wsuggest-destructor-override") SUPPRESS_WARNING_CLANG_PUSH("-Winconsistent-missing-destructor-override") @@ -34,7 +36,9 @@ SUPPRESS_WARNING_CLANG_POP SUPPRESS_WARNING_CLANG_POP SUPPRESS_WARNING_CLANG_POP SUPPRESS_WARNING_CLANG_POP +#if defined(__GNUC__) && (__GNUC__ >= 14) SUPPRESS_WARNING_GCC_POP +#endif inline static tinyxml2::XMLError xml_LoadFile(tinyxml2::XMLDocument& doc, const char* filename) {