work around gcc being nervous when static functions are unused.

This commit is contained in:
Enno Rehling 2015-02-08 13:42:04 +01:00
parent 39806eaef5
commit 30f5fbd4ca
2 changed files with 4 additions and 3 deletions

View File

@ -273,6 +273,7 @@ void assert_messages(struct CuTest * tc, struct mlist *msglist, const message_ty
va_end(args);
}
void disabled_test(void *suite, const char *name) {
void disabled_test(void *suite, void (*test)(CuTest *), const char *name) {
(void)test;
fprintf(stderr, "%s: SKIP\n", name);
}

View File

@ -47,9 +47,9 @@ extern "C" {
void assert_messages(struct CuTest * tc, struct mlist *msglist, const struct message_type **types,
int num_msgs, bool exact_match, ...);
void disabled_test(void *suite, const char *name);
void disabled_test(void *suite, void (*)(struct CuTest *), const char *name);
#define DISABLE_TEST(SUITE, TEST) disabled_test(SUITE, #TEST)
#define DISABLE_TEST(SUITE, TEST) disabled_test(SUITE, TEST, #TEST)
#ifdef __cplusplus
}