[Python-checkins] cpython: Fixed GCC version testing.
serhiy.storchaka
python-checkins at python.org
Thu Mar 5 22:43:06 CET 2015
https://hg.python.org/cpython/rev/2d12a0e44da0
changeset: 94869:2d12a0e44da0
user: Serhiy Storchaka <storchaka at gmail.com>
date: Thu Mar 05 23:42:24 2015 +0200
summary:
Fixed GCC version testing.
files:
Modules/socketmodule.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -1966,13 +1966,13 @@
#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__
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list