mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 14:41:42 +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
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue