diff options
Diffstat (limited to 'Modules/_testcapimodule.c')
| -rw-r--r-- | Modules/_testcapimodule.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index 74159a7b52..08aa9c701c 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -69,6 +69,10 @@ test_config(PyObject *self) static PyObject* test_sizeof_c_types(PyObject *self) { +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wtype-limits" +#endif #define CHECK_SIZEOF(TYPE, EXPECTED) \ if (EXPECTED != sizeof(TYPE)) { \ PyErr_Format(TestError, \ @@ -126,6 +130,9 @@ test_sizeof_c_types(PyObject *self) #undef IS_SIGNED #undef CHECK_SIGNESS #undef CHECK_SIZEOF +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif } |
