Fix warnings
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
diff --git a/testsuite/libffi.closures/single_entry_structs1.c b/testsuite/libffi.closures/single_entry_structs1.c
index 89d0d32..00c4e17 100644
--- a/testsuite/libffi.closures/single_entry_structs1.c
+++ b/testsuite/libffi.closures/single_entry_structs1.c
@@ -38,7 +38,7 @@ int main (void)
ffi_closure *pcl = ffi_closure_alloc(sizeof(ffi_closure), &code);
void* args_dbl[3];
ffi_type* cls_struct_fields[2];
- ffi_type cls_struct_type, cls_struct_type1;
+ ffi_type cls_struct_type;
ffi_type* dbl_arg_types[3];
int e_dbl = 12125;
@@ -71,14 +71,14 @@ int main (void)
ffi_call(&cif, FFI_FN(A_fn), &res_dbl, args_dbl);
- printf("1 res: %d \n", res_dbl.a);
+ printf("1 res: %d\n", res_dbl.a);
/* { dg-output "\n1 res: 43750" } */
CHECK( res_dbl.a == (e_dbl + f_dbl.a));
CHECK(ffi_prep_closure_loc(pcl, &cif, A_gn, NULL, code) == FFI_OK);
res_dbl = ((A(*)(int, A))(code))(e_dbl, f_dbl);
- printf("2 res: %d \n", res_dbl.a);
+ printf("2 res: %d\n", res_dbl.a);
/* { dg-output "\n2 res: 43750" } */
CHECK( res_dbl.a == (e_dbl + f_dbl.a));
diff --git a/testsuite/libffi.closures/single_entry_structs3.c b/testsuite/libffi.closures/single_entry_structs3.c
index eec8d72..4f619cb 100644
--- a/testsuite/libffi.closures/single_entry_structs3.c
+++ b/testsuite/libffi.closures/single_entry_structs3.c
@@ -73,7 +73,7 @@ int main (void)
dbl_arg_types[2] = NULL;
res_dbl = B_fn(e_dbl, f_dbl);
- printf("0 res: %f\n", res_dbl.y.a);
+ printf("0 res: %d\n", res_dbl.y.a);
/* { dg-output "0 res: 43750" } */