mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-06-20 19:05:38 +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
|
|
@ -19,7 +19,7 @@ static seq_hooks_t hooks[HOOK_MAX];
|
|||
static malloc_mutex_t hooks_mu;
|
||||
|
||||
bool
|
||||
hook_boot() {
|
||||
hook_boot(void) {
|
||||
return malloc_mutex_init(&hooks_mu, "hooks", WITNESS_RANK_HOOK,
|
||||
malloc_mutex_rank_exclusive);
|
||||
}
|
||||
|
|
@ -100,7 +100,7 @@ for (int for_each_hook_counter = 0; \
|
|||
}
|
||||
|
||||
static bool *
|
||||
hook_reentrantp() {
|
||||
hook_reentrantp(void) {
|
||||
/*
|
||||
* We prevent user reentrancy within hooks. This is basically just a
|
||||
* thread-local bool that triggers an early-exit.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue