aboutsummaryrefslogtreecommitdiff
path: root/nxcompshad/src/Logger.h
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2017-12-27 23:54:34 +0100
committerUlrich Sibiller <uli42@gmx.de>2017-12-28 12:40:05 +0100
commit2cade632b475ecc1a115692ec44bbb36a447ce8b (patch)
tree8c5f3113b513f70a5a94f43a0c264d8aff09fbe1 /nxcompshad/src/Logger.h
parent061c357727dd6a3a37e547091d76f26c080f0738 (diff)
downloadnx-libs-2cade632b475ecc1a115692ec44bbb36a447ce8b.tar.gz
nx-libs-2cade632b475ecc1a115692ec44bbb36a447ce8b.tar.bz2
nx-libs-2cade632b475ecc1a115692ec44bbb36a447ce8b.zip
nxcompshad: silence GCC warnings
Fixes ArcticaProject/nx-libs#572
Diffstat (limited to 'nxcompshad/src/Logger.h')
-rw-r--r--nxcompshad/src/Logger.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/nxcompshad/src/Logger.h b/nxcompshad/src/Logger.h
index 37b378cb2..876cb0432 100644
--- a/nxcompshad/src/Logger.h
+++ b/nxcompshad/src/Logger.h
@@ -29,6 +29,9 @@
#include <cerrno>
#include <cstdarg>
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wformat-nonliteral"
+
//
// Error handling macros.
//
@@ -164,4 +167,6 @@ static inline void logDump(const char *name, const char *data, int size)
#endif
}
+#pragma GCC diagnostic pop
+
#endif /* Logger_H */