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

@@ -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();
}