Remove warning message from clang
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
diff --git a/testsuite/libffi.bhaible/test-call.c b/testsuite/libffi.bhaible/test-call.c
index e1a15fe..82cc79e 100644
--- a/testsuite/libffi.bhaible/test-call.c
+++ b/testsuite/libffi.bhaible/test-call.c
@@ -46,12 +46,12 @@ int fprintf(FILE *stream, const char *format, ...)
vsprintf(&rbuf1[strlen(rbuf1)], format, args);
break;
case 2:
- printf(rbuf1);
+ printf("%s", rbuf1);
vsprintf(rbuf2, format, args);
break;
case 3:
vsprintf(&rbuf2[strlen(rbuf2)], format, args);
- printf(rbuf2);
+ printf("%s", rbuf2);
if (strcmp (rbuf1, rbuf2)) abort();
break;
}
diff --git a/testsuite/libffi.bhaible/test-callback.c b/testsuite/libffi.bhaible/test-callback.c
index cb52a31..7a435ae 100644
--- a/testsuite/libffi.bhaible/test-callback.c
+++ b/testsuite/libffi.bhaible/test-callback.c
@@ -46,12 +46,12 @@ int fprintf(FILE *stream, const char *format, ...)
vsprintf(&rbuf1[strlen(rbuf1)], format, args);
break;
case 2:
- printf(rbuf1);
+ printf("%s", rbuf1);
vsprintf(rbuf2, format, args);
break;
case 3:
vsprintf(&rbuf2[strlen(rbuf2)], format, args);
- printf(rbuf2);
+ printf("%s", rbuf2);
if (strcmp (rbuf1, rbuf2)) abort();
break;
}