cpython: ffe866aa86a8 (original) (raw)

Mercurial > cpython

changeset 102120:ffe866aa86a8 2.7

Issue #22463: Cure unused function warnings on AIX [#22463]

Martin Panter vadmium+py@gmail.com
date Wed, 22 Jun 2016 02:46:33 +0000
parents b1c1c297bead
children 7d25a93c135f
files Modules/_ctypes/callproc.c Modules/_ctypes/cfield.c
diffstat 2 files changed, 6 insertions(+), 2 deletions(-)[+] [-] Modules/_ctypes/callproc.c 4 Modules/_ctypes/cfield.c 4

line wrap: on

line diff

--- a/Modules/_ctypes/callproc.c +++ b/Modules/_ctypes/callproc.c @@ -92,8 +92,10 @@ #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:

--- a/Modules/_ctypes/cfield.c +++ b/Modules/_ctypes/cfield.c @@ -12,8 +12,10 @@ #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 /******************************************************************/