Commit 2a531395 authored by Georg Brandl's avatar Georg Brandl

Get rid of a "unused static function" warning.

parent 4cb3dbd8
......@@ -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
/******************************************************************/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment