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

@@ -124,12 +124,12 @@ compare_with_free(size_t batch, size_t iter,
}
static void
batch_alloc_without_free_tiny() {
batch_alloc_without_free_tiny(void) {
batch_alloc_without_free(TINY_BATCH);
}
static void
item_alloc_without_free_tiny() {
item_alloc_without_free_tiny(void) {
item_alloc_without_free(TINY_BATCH);
}
@@ -140,12 +140,12 @@ TEST_BEGIN(test_tiny_batch_without_free) {
TEST_END
static void
batch_alloc_with_free_tiny() {
batch_alloc_with_free_tiny(void) {
batch_alloc_with_free(TINY_BATCH);
}
static void
item_alloc_with_free_tiny() {
item_alloc_with_free_tiny(void) {
item_alloc_with_free(TINY_BATCH);
}
@@ -156,12 +156,12 @@ TEST_BEGIN(test_tiny_batch_with_free) {
TEST_END
static void
batch_alloc_without_free_huge() {
batch_alloc_without_free_huge(void) {
batch_alloc_without_free(HUGE_BATCH);
}
static void
item_alloc_without_free_huge() {
item_alloc_without_free_huge(void) {
item_alloc_without_free(HUGE_BATCH);
}
@@ -172,12 +172,12 @@ TEST_BEGIN(test_huge_batch_without_free) {
TEST_END
static void
batch_alloc_with_free_huge() {
batch_alloc_with_free_huge(void) {
batch_alloc_with_free(HUGE_BATCH);
}
static void
item_alloc_with_free_huge() {
item_alloc_with_free_huge(void) {
item_alloc_with_free(HUGE_BATCH);
}