diff options
Diffstat (limited to 'contrib/expat/tests/minicheck.c')
-rw-r--r-- | contrib/expat/tests/minicheck.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/expat/tests/minicheck.c b/contrib/expat/tests/minicheck.c index d2f4295ffb9e..5a1f5ed0e252 100644 --- a/contrib/expat/tests/minicheck.c +++ b/contrib/expat/tests/minicheck.c @@ -10,10 +10,11 @@ #include <setjmp.h> #include <assert.h> +#include "internal.h" /* for UNUSED_P only */ #include "minicheck.h" Suite * -suite_create(char *name) +suite_create(const char *name) { Suite *suite = (Suite *) calloc(1, sizeof(Suite)); if (suite != NULL) { @@ -23,7 +24,7 @@ suite_create(char *name) } TCase * -tcase_create(char *name) +tcase_create(const char *name) { TCase *tc = (TCase *) calloc(1, sizeof(TCase)); if (tc != NULL) { @@ -156,7 +157,7 @@ srunner_run_all(SRunner *runner, int verbosity) } void -_fail_unless(int condition, const char *file, int line, char *msg) +_fail_unless(int UNUSED_P(condition), const char *UNUSED_P(file), int UNUSED_P(line), const char *msg) { /* Always print the error message so it isn't lost. In this case, we have a failure, so there's no reason to be quiet about what |