[Python-checkins] r85577 - python/branches/py3k/Modules/_ctypes/cfield.c
georg.brandl
python-checkins at python.org
Sat Oct 16 22:33:11 CEST 2010
Author: georg.brandl
Date: Sat Oct 16 22:33:11 2010
New Revision: 85577
Log:
Get rid of a "unused static function" warning.
Modified:
python/branches/py3k/Modules/_ctypes/cfield.c
Modified: python/branches/py3k/Modules/_ctypes/cfield.c
==============================================================================
--- python/branches/py3k/Modules/_ctypes/cfield.c (original)
+++ python/branches/py3k/Modules/_ctypes/cfield.c Sat Oct 16 22:33:11 2010
@@ -9,6 +9,7 @@
#define CTYPES_CFIELD_CAPSULE_NAME_PYMEM "_ctypes/cfield.c pymem"
+#if Py_UNICODE_SIZE != SIZEOF_WCHAR_T
static void pymem_destructor(PyObject *ptr)
{
void *p = PyCapsule_GetPointer(ptr, CTYPES_CFIELD_CAPSULE_NAME_PYMEM);
@@ -16,6 +17,7 @@
PyMem_Free(p);
}
}
+#endif
/******************************************************************/
More information about the Python-checkins
mailing list