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