forked from github/server
work around gcc being nervous when static functions are unused.
This commit is contained in:
parent
39806eaef5
commit
30f5fbd4ca
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue