summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-10-16 20:33:11 (GMT)
committerGeorg Brandl <georg@python.org>2010-10-16 20:33:11 (GMT)
commit2a531395cd5f6997aaa5611b4d007595d8b87416 (patch)
tree46b9ca10a424b74de3560a2412278e882a95dd6e /Modules
parent4cb3dbd8d353589a0ef731a51d40caa24e096913 (diff)
downloadcpython-2a531395cd5f6997aaa5611b4d007595d8b87416.zip
cpython-2a531395cd5f6997aaa5611b4d007595d8b87416.tar.gz
cpython-2a531395cd5f6997aaa5611b4d007595d8b87416.tar.bz2
Get rid of a "unused static function" warning.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ctypes/cfield.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_ctypes/cfield.c b/Modules/_ctypes/cfield.c
index ab293f7..d2fa005 100644
--- a/Modules/_ctypes/cfield.c
+++ b/Modules/_ctypes/cfield.c
@@ -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 @@ static void pymem_destructor(PyObject *ptr)
PyMem_Free(p);
}
}
+#endif
/******************************************************************/