diff options
author | doko <doko@ubuntu.com> | 2014-08-10 00:01:04 +0200 |
---|---|---|
committer | doko <doko@ubuntu.com> | 2014-08-10 00:01:04 +0200 |
commit | 4766ace2130c1487846f9d42e2635cbfba033a99 (patch) | |
tree | c72f42c0f3dad5beff933ab536c75d59fd5642dc /Modules/_ctypes/libffi | |
parent | 00edd5b9e2b298f3f1e0a26bea9d27317dfc6bb4 (diff) | |
download | cpython-4766ace2130c1487846f9d42e2635cbfba033a99.tar.gz |
- Issue #22176: Fix build failure on ARM with -Werror=declaration-after-statement
Diffstat (limited to 'Modules/_ctypes/libffi')
-rw-r--r-- | Modules/_ctypes/libffi/src/arm/ffi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_ctypes/libffi/src/arm/ffi.c b/Modules/_ctypes/libffi/src/arm/ffi.c index 7cd92898fb..6691ab57da 100644 --- a/Modules/_ctypes/libffi/src/arm/ffi.c +++ b/Modules/_ctypes/libffi/src/arm/ffi.c @@ -154,9 +154,6 @@ int ffi_prep_args_SYSV(char *stack, extended_cif *ecif, float *vfp_space) int ffi_prep_args_VFP(char *stack, extended_cif *ecif, float *vfp_space) { - // make sure we are using FFI_VFP - FFI_ASSERT(ecif->cif->abi == FFI_VFP); - register unsigned int i, vi = 0; register void **p_argv; register char *argp, *regp, *eo_regp; @@ -165,6 +162,9 @@ int ffi_prep_args_VFP(char *stack, extended_cif *ecif, float *vfp_space) char done_with_regs = 0; char is_vfp_type; + // make sure we are using FFI_VFP + FFI_ASSERT(ecif->cif->abi == FFI_VFP); + /* the first 4 words on the stack are used for values passed in core * registers. */ regp = stack; |