diff options
author | Ned Deily <nad@python.org> | 2016-10-20 19:38:27 (GMT) |
---|---|---|
committer | Ned Deily <nad@python.org> | 2016-10-20 19:38:27 (GMT) |
commit | f536af1fcdfaa81350be5a0a043f7230ed5d8049 (patch) | |
tree | 58c6c8fb90af919f21584c9473dca6ccba5477aa | |
parent | ea75a513dfcf95e551948511a44c73362511658c (diff) | |
download | cpython-f536af1fcdfaa81350be5a0a043f7230ed5d8049.zip cpython-f536af1fcdfaa81350be5a0a043f7230ed5d8049.tar.gz cpython-f536af1fcdfaa81350be5a0a043f7230ed5d8049.tar.bz2 |
Issue #24381: Avoid unused function warning when building bundled macOS libffi.
Patch by Vajrasky Kok.
-rw-r--r-- | Modules/_ctypes/libffi_osx/ffi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_ctypes/libffi_osx/ffi.c b/Modules/_ctypes/libffi_osx/ffi.c index 96826b5..1776b79 100644 --- a/Modules/_ctypes/libffi_osx/ffi.c +++ b/Modules/_ctypes/libffi_osx/ffi.c @@ -102,7 +102,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( @@ -125,7 +125,7 @@ struct_on_stack( } } -#endif // defined(X86_DARWIN) +#endif // defined(X86_DARWIN) && !defined __x86_64__ // Arguments' ffi_type->alignment must be nonzero. ffi_status |