]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/inttypes.h
Use a different diagnostic pragma for recent GCC versions
[libs/core.git] / source / core / inttypes.h
index 58debd00f67542ed751bacc4f320789948f83c83..c0af5ca9f2d2cf485b7a84d56285835087e3119c 100644 (file)
@@ -14,7 +14,11 @@ typedef TypeList<unsigned char, unsigned short, unsigned int, unsigned long>::Ty
 #if defined(__GNUC__)
 #if (__GNUC__>4 || (__GNUC__==4 && __GNUC_MINOR__>=6)) && defined(__LP64__)
 #pragma GCC diagnostic push
+#if __GNUC__>=5
+#pragma GCC diagnostic ignored "-Wpedantic"
+#else
 #pragma GCC diagnostic ignored "-pedantic"
+#endif
 typedef TypeList<StandardSignedTypes, long long, __int128>::Type PlatformSignedTypes;
 typedef TypeList<StandardUnsignedTypes, unsigned long long, unsigned __int128>::Type PlatformUnsignedTypes;
 #pragma GCC diagnostic pop