]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libffi/testsuite/libffi.call/cls_sint.c
call.exp: Adjust FSF address.
[thirdparty/gcc.git] / libffi / testsuite / libffi.call / cls_sint.c
index 9998137d11dc933fe0383b0031df4af04138925e..462d395cc6885117f21662134a5418b221d524a5 100644 (file)
@@ -7,12 +7,12 @@
 /* { dg-do run { xfail mips64*-*-* arm*-*-* strongarm*-*-* xscale*-*-* } } */
 #include "ffitest.h"
 
-static void cls_ret_sint_fn(ffi_cif* cif,void* resp,void** args,
-                            void* userdata)
+static void cls_ret_sint_fn(ffi_cif* cif __UNUSED__, void* resp, void** args,
+                           void* userdata __UNUSED__)
 {
   *(ffi_arg*)resp = *(signed int *)args[0];
   printf("%d: %d\n",*(signed int *)args[0],
-        *(ffi_arg*)resp);
+        (int)*(ffi_arg *)(resp));
 }
 typedef signed int (*cls_ret_sint)(signed int);