From ffc1e458036866b1b2f4cb7f4beeeae0bb832da3 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 3 Sep 2016 01:10:07 +0300 Subject: [PATCH] Use a different diagnostic pragma for recent GCC versions --- source/core/inttypes.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/core/inttypes.h b/source/core/inttypes.h index 58debd0..c0af5ca 100644 --- a/source/core/inttypes.h +++ b/source/core/inttypes.h @@ -14,7 +14,11 @@ typedef TypeList::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::Type PlatformSignedTypes; typedef TypeList::Type PlatformUnsignedTypes; #pragma GCC diagnostic pop -- 2.43.0