From 2a531395cd5f6997aaa5611b4d007595d8b87416 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 16 Oct 2010 20:33:11 +0000 Subject: Get rid of a "unused static function" warning. --- Modules/_ctypes/cfield.c | 2 ++ 1 file changed, 2 insertions(+) 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 /******************************************************************/ -- cgit v0.12