summaryrefslogtreecommitdiffstats
path: root/Modules/_struct.c
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@gmail.com>2009-05-29 03:44:31 (GMT)
committerJeffrey Yasskin <jyasskin@gmail.com>2009-05-29 03:44:31 (GMT)
commit7937d939b1e41e869ebd6a41787c186482f5950f (patch)
tree4dbf1908e42190ac3d3f877d55453f8d8f189477 /Modules/_struct.c
parent822b87f276d11cbe0d45f91cbeb9e9abdf231c7e (diff)
downloadcpython-7937d939b1e41e869ebd6a41787c186482f5950f.zip
cpython-7937d939b1e41e869ebd6a41787c186482f5950f.tar.gz
cpython-7937d939b1e41e869ebd6a41787c186482f5950f.tar.bz2
Fix nearly all compilation warnings under Apple gcc-4.0. Tested with OPT="-g
-Wall -Wstrict-prototypes -Werror" in both --with-pydebug mode and --without. There's still a batch of non-prototype warnings in Xlib.h that I don't know how to fix.
Diffstat (limited to 'Modules/_struct.c')
-rw-r--r--Modules/_struct.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_struct.c b/Modules/_struct.c
index b8f1525..a7fce10 100644
--- a/Modules/_struct.c
+++ b/Modules/_struct.c
@@ -182,6 +182,7 @@ get_long(PyObject *v, long *p)
/* Same, but handling unsigned long */
+#ifndef PY_STRUCT_OVERFLOW_MASKING
static int
get_ulong(PyObject *v, unsigned long *p)
{
@@ -201,6 +202,7 @@ get_ulong(PyObject *v, unsigned long *p)
}
return 0;
}
+#endif /* PY_STRUCT_OVERFLOW_MASKING */
#ifdef HAVE_LONG_LONG