Remove some more warnings

This commit is contained in:
Alexander Bock
2022-07-22 14:27:45 +02:00
parent b24181e206
commit 2f58e8ec8e
4 changed files with 15 additions and 5 deletions

View File

@@ -28,6 +28,13 @@ distribution.
#pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
#endif
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wold-style-cast"
#pragma clang diagnostic ignored "-Wsuggest-override"
#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant"
#endif
#include "tinyxml2.h"
#include <new> // yes, this one new style header, is in the Android SDK.
@@ -2995,3 +3002,7 @@ bool XMLPrinter::Visit( const XMLUnknown& unknown )
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic pop
#endif
#if defined(__clang__)
#pragma clang diagnostic pop
#endif