mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 05:03:10 +00:00
Enabled -Wstrict-prototypes and fixed warnings.
This commit is contained in:
@@ -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];
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user