Enabled -Wstrict-prototypes and fixed warnings.

This commit is contained in:
Qi Wang 2023-07-05 13:33:34 -07:00 committed by Qi Wang
parent ebd7e99f5c
commit 602edd7566
42 changed files with 82 additions and 80 deletions

View file

@ -40,8 +40,8 @@ compare_funcs(uint64_t nwarmup, uint64_t niter, const char *name_a,
return;
}
time_func(&timer_a, nwarmup, niter, (void (*)())func_a);
time_func(&timer_b, nwarmup, niter, (void (*)())func_b);
time_func(&timer_a, nwarmup, niter, (void (*)(void))func_a);
time_func(&timer_b, nwarmup, niter, (void (*)(void))func_b);
uint64_t usec_a = timer_usec(&timer_a);
char buf_a[FMT_NSECS_BUF_SIZE];

View file

@ -569,7 +569,7 @@ label_test_end: \
} \
} while (0)
bool test_is_reentrant();
bool test_is_reentrant(void);
void test_skip(const char *format, ...) JEMALLOC_FORMAT_PRINTF(1, 2);
void test_fail(const char *format, ...) JEMALLOC_FORMAT_PRINTF(1, 2);