From: Mikko Rasa Date: Fri, 2 Sep 2016 22:10:07 +0000 (+0300) Subject: Use a different diagnostic pragma for recent GCC versions X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=ffc1e458036866b1b2f4cb7f4beeeae0bb832da3;p=libs%2Fcore.git Use a different diagnostic pragma for recent GCC versions --- 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