Skip to content

Commit 4697def

Browse files
committed
xml.h: suppressed -Wformat warning
1 parent 598aeb7 commit 4697def

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/xml.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@
2525
SUPPRESS_WARNING_CLANG_PUSH("-Wzero-as-null-pointer-constant")
2626
SUPPRESS_WARNING_CLANG_PUSH("-Wsuggest-destructor-override")
2727
SUPPRESS_WARNING_CLANG_PUSH("-Winconsistent-missing-destructor-override")
28+
SUPPRESS_WARNING_CLANG_PUSH("-Wformat") // happens with libc++ only
2829

2930
#include <tinyxml2.h> // IWYU pragma: export
3031

3132
SUPPRESS_WARNING_CLANG_POP
3233
SUPPRESS_WARNING_CLANG_POP
3334
SUPPRESS_WARNING_CLANG_POP
35+
SUPPRESS_WARNING_CLANG_POP
3436

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

0 commit comments

Comments
 (0)