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

@@ -35,7 +35,7 @@ reentrancy_t_str(reentrancy_t r) {
}
static void
do_hook(bool *hook_ran, void (**hook)()) {
do_hook(bool *hook_ran, void (**hook)(void)) {
*hook_ran = true;
*hook = NULL;
@@ -47,12 +47,12 @@ do_hook(bool *hook_ran, void (**hook)()) {
}
static void
libc_reentrancy_hook() {
libc_reentrancy_hook(void) {
do_hook(&libc_hook_ran, &test_hooks_libc_hook);
}
static void
arena_new_reentrancy_hook() {
arena_new_reentrancy_hook(void) {
do_hook(&arena_new_hook_ran, &test_hooks_arena_new_hook);
}