From a55fe10487640a6700dcab748091c2c443f57446 Mon Sep 17 00:00:00 2001 From: Mark Dickinson Date: Sun, 27 Sep 2009 16:32:34 +0000 Subject: [PATCH] Fix compiler warning about unused function. --- Modules/_struct.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Modules/_struct.c b/Modules/_struct.c index 9c45dbe31b..e567627c97 100644 --- a/Modules/_struct.c +++ b/Modules/_struct.c @@ -182,6 +182,8 @@ 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) { @@ -202,6 +204,8 @@ get_ulong(PyObject *v, unsigned long *p) return 0; } +#endif /* PY_STRUCT_OVERFLOW_MASKING */ + #ifdef HAVE_LONG_LONG /* Same, but handling native long long. */ -- 2.50.1