diff options
author | Ned Deily <nad@acm.org> | 2015-03-05 23:47:10 (GMT) |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2015-03-05 23:47:10 (GMT) |
commit | e37a1946c7196169b8d3117f65391a12bb8d97f7 (patch) | |
tree | e420ccff80d9a80c1553301d5f03c1e5480183b7 | |
parent | 7e28df94ece2a0b766d5eddaf691f0428d8da2b4 (diff) | |
download | cpython-e37a1946c7196169b8d3117f65391a12bb8d97f7.zip cpython-e37a1946c7196169b8d3117f65391a12bb8d97f7.tar.gz cpython-e37a1946c7196169b8d3117f65391a12bb8d97f7.tar.bz2 |
Fix regression introduced by changeset 7c6e3358221a that caused compile
errors of _testcapimodule.c with older versions of gcc.
-rw-r--r-- | Modules/_testcapimodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index 08aa9c7..a8ce0dc 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -69,7 +69,7 @@ test_config(PyObject *self) static PyObject* test_sizeof_c_types(PyObject *self) { -#ifdef __GNUC__ +#if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 5))) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wtype-limits" #endif @@ -130,7 +130,7 @@ test_sizeof_c_types(PyObject *self) #undef IS_SIGNED #undef CHECK_SIGNESS #undef CHECK_SIZEOF -#ifdef __GNUC__ +#if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 5))) #pragma GCC diagnostic pop #endif } |