From: Serhiy Storchaka Date: Thu, 5 Mar 2015 21:42:24 +0000 (+0200) Subject: Fixed GCC version testing. X-Git-Tag: v3.5.0a2~22 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=caa01f861cc811f273f8eeff92f32daf7efeeb65;p=thirdparty%2FPython%2Fcpython.git Fixed GCC version testing. --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 483dae546add..057430b7040c 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -1966,13 +1966,13 @@ cmsg_min_space(struct msghdr *msg, struct cmsghdr *cmsgh, size_t space) #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wtautological-compare" #endif - #if defined(__GNUC__) && ((__GNUC__ == 4) || ((__GNUC__ > 4) && (__GNUC_MINOR__ > 5))) + #if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 5))) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wtype-limits" #endif if (msg->msg_controllen < 0) return 0; - #if defined(__GNUC__) && ((__GNUC__ == 4) || ((__GNUC__ > 4) && (__GNUC_MINOR__ > 5))) + #if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 5))) #pragma GCC diagnostic pop #endif #ifdef __clang__