mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 13:13:06 +00:00
Enabled -Wstrict-prototypes and fixed warnings.
This commit is contained in:
@@ -14,7 +14,7 @@ static uintptr_t arg_args_raw[4];
|
||||
static int call_count = 0;
|
||||
|
||||
static void
|
||||
reset_args() {
|
||||
reset_args(void) {
|
||||
arg_extra = NULL;
|
||||
arg_type = 12345;
|
||||
arg_result = NULL;
|
||||
@@ -40,7 +40,7 @@ alloc_free_size(size_t sz) {
|
||||
* allocation scenarios.
|
||||
*/
|
||||
static void
|
||||
be_reentrant() {
|
||||
be_reentrant(void) {
|
||||
/* Let's make sure the tcache is non-empty if enabled. */
|
||||
alloc_free_size(1);
|
||||
alloc_free_size(1024);
|
||||
@@ -77,7 +77,7 @@ expect_args_raw(uintptr_t *args_raw_expected, int nargs) {
|
||||
}
|
||||
|
||||
static void
|
||||
reset() {
|
||||
reset(void) {
|
||||
call_count = 0;
|
||||
reset_args();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user