summaryrefslogtreecommitdiffstats
path: root/Modules/_testcapimodule.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-02-26 13:27:57 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-02-26 13:27:57 (GMT)
commitb48af340b9e6c8775fb9da9cab06e922d0bd0127 (patch)
treef53af08a17612daf55f4e446e3e49df0be97ced4 /Modules/_testcapimodule.c
parente71258a0e67cf744f5f2c0bca15f1d66871ce050 (diff)
downloadcpython-b48af340b9e6c8775fb9da9cab06e922d0bd0127.zip
cpython-b48af340b9e6c8775fb9da9cab06e922d0bd0127.tar.gz
cpython-b48af340b9e6c8775fb9da9cab06e922d0bd0127.tar.bz2
Silenced minor GCC warnings.
Diffstat (limited to 'Modules/_testcapimodule.c')
-rw-r--r--Modules/_testcapimodule.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
index 74159a7..08aa9c7 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
}