summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Klose <doko@ubuntu.com>2014-09-20 06:37:04 -0400
committerAnthony Green <green@moxielogic.com>2014-09-20 06:37:04 -0400
commitaaf3101ba81af8f488502881648e3f687721671e (patch)
treed25768505347cf0c0454c438fc9806fe824693a6
parent6e8a4460833594d5af1b4539178025da0077df19 (diff)
downloadlibffi-aaf3101ba81af8f488502881648e3f687721671e.tar.gz
Fix -Werror=declaration-after-statement problem
-rw-r--r--src/arm/ffi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/arm/ffi.c b/src/arm/ffi.c
index 7cd9289..6691ab5 100644
--- a/src/arm/ffi.c
+++ b/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;