mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-06 11:47:28 +03:00
Enabled -Wstrict-prototypes and fixed warnings.
This commit is contained in:
parent
ebd7e99f5c
commit
602edd7566
42 changed files with 82 additions and 80 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue