From: Ned Deily Date: Thu, 20 Oct 2016 19:41:11 +0000 (-0400) Subject: Issue #24381: Avoid unused function warning when building bundled macOS libffi. X-Git-Tag: v2.7.13rc1~70 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0436cebb8f3e0f124a6b8d139ecb600b4cb63261;p=python Issue #24381: Avoid unused function warning when building bundled macOS libffi. Patch by Vajrasky Kok. --- diff --git a/Modules/_ctypes/libffi_osx/ffi.c b/Modules/_ctypes/libffi_osx/ffi.c index bf420936db..8cd2a78be6 100644 --- a/Modules/_ctypes/libffi_osx/ffi.c +++ b/Modules/_ctypes/libffi_osx/ffi.c @@ -101,7 +101,7 @@ initialize_aggregate( /* Perform machine independent ffi_cif preparation, then call machine dependent routine. */ -#if defined(X86_DARWIN) +#if defined(X86_DARWIN) && !defined __x86_64__ static inline bool struct_on_stack( @@ -124,7 +124,7 @@ struct_on_stack( } } -#endif // defined(X86_DARWIN) +#endif // defined(X86_DARWIN) && !defined __x86_64__ // Arguments' ffi_type->alignment must be nonzero. ffi_status