[Python-checkins] r75089 - python/branches/release26-maint/Modules/_struct.c

mark.dickinson python-checkins at python.org
Sun Sep 27 18:32:35 CEST 2009


Author: mark.dickinson
Date: Sun Sep 27 18:32:34 2009
New Revision: 75089
Log:
Fix compiler warning about unused function.
Modified:
 python/branches/release26-maint/Modules/_struct.c
Modified: python/branches/release26-maint/Modules/_struct.c
==============================================================================
--- python/branches/release26-maint/Modules/_struct.c	(original)
+++ python/branches/release26-maint/Modules/_struct.c	Sun Sep 27 18:32:34 2009
@@ -182,6 +182,8 @@
 
 /* Same, but handling unsigned long */
 
+#ifndef PY_STRUCT_OVERFLOW_MASKING
+
 static int
 get_ulong(PyObject *v, unsigned long *p)
 {
@@ -202,6 +204,8 @@
 	return 0;
 }
 
+#endif /* PY_STRUCT_OVERFLOW_MASKING */
+
 #ifdef HAVE_LONG_LONG
 
 /* Same, but handling native long long. */


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /