From b8934851bb7862e9d255405150278e219eb1e7df Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 26 Apr 2025 11:34:22 +0200 Subject: [PATCH] ssfmalloc: Fix -Wmissing-variable-declarations warnings. * lib/ssfmalloc.h (small_block_pages, medium_block_pages): Make static. --- ChangeLog | 3 +++ lib/ssfmalloc.h | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 09b82bf7e8..ef3e097338 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2025-04-26 Bruno Haible + ssfmalloc: Fix -Wmissing-variable-declarations warnings. + * lib/ssfmalloc.h (small_block_pages, medium_block_pages): Make static. + bitset: Fix -Wmissing-variable-declarations warnings. * lib/bitset/table.c (tbitset_vtable): Make static. * lib/bitset/array.c (abitset_small_vtable, abitset_vtable): Likewise. diff --git a/lib/ssfmalloc.h b/lib/ssfmalloc.h index cccc218300..ff05b997c9 100644 --- a/lib/ssfmalloc.h +++ b/lib/ssfmalloc.h @@ -503,7 +503,7 @@ free_small_block_in_page (uintptr_t block, uintptr_t page) } /* Management of pages of small blocks. */ -struct page_pool small_block_pages = +static struct page_pool small_block_pages = { init_small_block_page_pool, init_small_block_page, @@ -672,7 +672,7 @@ free_medium_block_in_page (uintptr_t block, uintptr_t page) } /* Management of pages of medium blocks. */ -struct page_pool medium_block_pages = +static struct page_pool medium_block_pages = { init_medium_block_page_pool, init_medium_block_page, -- 2.39.5