diff options
author | Dan Witte <dwitte@mozilla.com> | 2010-08-06 20:05:33 +0000 |
---|---|---|
committer | Anthony Green <green@gcc.gnu.org> | 2010-08-06 20:05:33 +0000 |
commit | 7862d4962909c8cb237c55a00ab86dbf8e56e40a (patch) | |
tree | bcac03c9a446a168dc61fe2dcfd71bbb9e5677ad /libffi/src/powerpc/ffi_darwin.c | |
parent | 833bb7dfad9a511ddeddcd77c9264d3ad24926ef (diff) | |
download | gcc-7862d4962909c8cb237c55a00ab86dbf8e56e40a.tar.gz |
Remove warnings
From-SVN: r162959
Diffstat (limited to 'libffi/src/powerpc/ffi_darwin.c')
-rw-r--r-- | libffi/src/powerpc/ffi_darwin.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libffi/src/powerpc/ffi_darwin.c b/libffi/src/powerpc/ffi_darwin.c index d84f1c393a8..82265e832b4 100644 --- a/libffi/src/powerpc/ffi_darwin.c +++ b/libffi/src/powerpc/ffi_darwin.c @@ -344,7 +344,7 @@ ffi_status ffi_prep_cif_machdep (ffi_cif *cif) { /* All this is for the DARWIN ABI. */ - int i; + unsigned i; ffi_type **ptr; unsigned bytes; int fparg_count = 0, intarg_count = 0; @@ -542,11 +542,11 @@ ffi_call (ffi_cif *cif, void (*fn)(void), void *rvalue, void **avalue) { case FFI_AIX: ffi_call_AIX(&ecif, -(long)cif->bytes, cif->flags, ecif.rvalue, fn, - ffi_prep_args); + FFI_FN(ffi_prep_args)); break; case FFI_DARWIN: ffi_call_DARWIN(&ecif, -(long)cif->bytes, cif->flags, ecif.rvalue, fn, - ffi_prep_args); + FFI_FN(ffi_prep_args)); break; default: FFI_ASSERT(0); @@ -799,9 +799,9 @@ ffi_closure_helper_DARWIN (ffi_closure *closure, void *rvalue, if (arg_types[i]->elements[0]->type == FFI_TYPE_DOUBLE) size_al = ALIGN (arg_types[i]->size, 8); if (size_al < 3 && cif->abi == FFI_DARWIN) - avalue[i] = (void *) pgr + 8 - size_al; + avalue[i] = (char *) pgr + 8 - size_al; else - avalue[i] = (void *) pgr; + avalue[i] = pgr; pgr += (size_al + 7) / 8; #else /* Structures that match the basic modes (QI 1 byte, HI 2 bytes, @@ -812,9 +812,9 @@ ffi_closure_helper_DARWIN (ffi_closure *closure, void *rvalue, if (arg_types[i]->elements[0]->type == FFI_TYPE_DOUBLE) size_al = ALIGN(arg_types[i]->size, 8); if (size_al < 3 && cif->abi == FFI_DARWIN) - avalue[i] = (void*) pgr + 4 - size_al; + avalue[i] = (char*) pgr + 4 - size_al; else - avalue[i] = (void*) pgr; + avalue[i] = pgr; pgr += (size_al + 3) / 4; #endif break; |