[Python-checkins] cpython (2.7): Issue #24381: Avoid unused function warning when building bundled macOS libffi.
ned.deily
python-checkins at python.org
Thu Oct 20 15:42:57 EDT 2016
https://hg.python.org/cpython/rev/cca20d28f348
changeset: 104587:cca20d28f348
branch: 2.7
parent: 104575:17629dee23ca
user: Ned Deily <nad at python.org>
date: Thu Oct 20 15:41:11 2016 -0400
summary:
Issue #24381: Avoid unused function warning when building bundled macOS libffi.
Patch by Vajrasky Kok.
files:
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
--- a/Modules/_ctypes/libffi_osx/ffi.c
+++ b/Modules/_ctypes/libffi_osx/ffi.c
@@ -101,7 +101,7 @@
/* 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 @@
}
}
-#endif // defined(X86_DARWIN)
+#endif // defined(X86_DARWIN) && !defined __x86_64__
// Arguments' ffi_type->alignment must be nonzero.
ffi_status
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list