]> granicus.if.org Git - python/commitdiff
Issue #22463: Cure unused function warnings on AIX
authorMartin Panter <vadmium+py@gmail.com>
Wed, 22 Jun 2016 02:46:33 +0000 (02:46 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Wed, 22 Jun 2016 02:46:33 +0000 (02:46 +0000)
Modules/_ctypes/callproc.c
Modules/_ctypes/cfield.c

index 7af4bfb8e7da304a466ea7b9916debaeff9fbc5e..419beb188b78c6ec2f8e75422702c823651897a8 100644 (file)
 #define CTYPES_CAPSULE_ERROROBJ "_ctypes/callproc.c error object"
 CTYPES_CAPSULE_INSTANTIATE_DESTRUCTOR(CTYPES_CAPSULE_ERROROBJ)
 
-#define CTYPES_CAPSULE_WCHAR_T "_ctypes/callproc.c wchar_t buffer from unicode"
+#if defined(CTYPES_UNICODE) && !defined(HAVE_USABLE_WCHAR_T)
+#  define CTYPES_CAPSULE_WCHAR_T "_ctypes/callproc.c wchar_t buffer from unicode"
 CTYPES_CAPSULE_INSTANTIATE_DESTRUCTOR(CTYPES_CAPSULE_WCHAR_T)
+#endif
 
 /*
   ctypes maintains thread-local storage that has space for two error numbers:
index 7fe984d86e8a37179bd6aeec32809d8bca8bf392..e033cd5fffe58b21c47e1f10c5e80b0bb40dbc28 100644 (file)
 #include "ctypes.h"
 
 
-#define CTYPES_CAPSULE_WCHAR_T "_ctypes/cfield.c wchar_t buffer from unicode"
+#if defined(CTYPES_UNICODE) && !defined(HAVE_USABLE_WCHAR_T)
+#   define CTYPES_CAPSULE_WCHAR_T "_ctypes/cfield.c wchar_t buffer from unicode"
 CTYPES_CAPSULE_INSTANTIATE_DESTRUCTOR(CTYPES_CAPSULE_WCHAR_T)
+#endif
 
 
 /******************************************************************/