Skip to content

Commit 690aab5

Browse files
authored
xml.h: fixed -Wpragmas GCC warning (danmar#7094)
1 parent f400d04 commit 690aab5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/xml.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
#include "config.h"
2323
#include "path.h"
2424

25+
#if defined(__GNUC__) && (__GNUC__ >= 14)
2526
SUPPRESS_WARNING_GCC_PUSH("-Wsuggest-attribute=returns_nonnull")
27+
#endif
2628
SUPPRESS_WARNING_CLANG_PUSH("-Wzero-as-null-pointer-constant")
2729
SUPPRESS_WARNING_CLANG_PUSH("-Wsuggest-destructor-override")
2830
SUPPRESS_WARNING_CLANG_PUSH("-Winconsistent-missing-destructor-override")
@@ -34,7 +36,9 @@ SUPPRESS_WARNING_CLANG_POP
3436
SUPPRESS_WARNING_CLANG_POP
3537
SUPPRESS_WARNING_CLANG_POP
3638
SUPPRESS_WARNING_CLANG_POP
39+
#if defined(__GNUC__) && (__GNUC__ >= 14)
3740
SUPPRESS_WARNING_GCC_POP
41+
#endif
3842

3943
inline static tinyxml2::XMLError xml_LoadFile(tinyxml2::XMLDocument& doc, const char* filename)
4044
{

0 commit comments

Comments
 (0)