From c09aebe7919e85bd1977830c417b7b84a820a25d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20Gr=C3=BCninger?= Date: Tue, 19 May 2026 21:48:05 +0200 Subject: [PATCH] void function should not return anything Found by GCC 16 (-Wpedantic). --- src/arena.c | 4 ++-- src/jemalloc.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/arena.c b/src/arena.c index d8bd7ae7..55292202 100644 --- a/src/arena.c +++ b/src/arena.c @@ -1514,10 +1514,10 @@ arena_ptr_array_flush_impl(tsd_t *tsd, szind_t binind, * '...' is morally equivalent, the code itself needs slight tweaks. */ if (small) { - return arena_ptr_array_flush_impl_small(tsdn, binind, arr, + arena_ptr_array_flush_impl_small(tsdn, binind, arr, item_edata, nflush, stats_arena, merge_stats); } else { - return arena_ptr_array_flush_impl_large(tsdn, binind, arr, + arena_ptr_array_flush_impl_large(tsdn, binind, arr, item_edata, nflush, stats_arena, merge_stats); } } diff --git a/src/jemalloc.c b/src/jemalloc.c index 6544657d..028eca86 100644 --- a/src/jemalloc.c +++ b/src/jemalloc.c @@ -1059,7 +1059,7 @@ je_free_sized(void *ptr, size_t size) { JEMALLOC_EXPORT void JEMALLOC_NOTHROW je_free_aligned_sized(void *ptr, size_t alignment, size_t size) { - return je_sdallocx(ptr, size, /* flags */ MALLOCX_ALIGN(alignment)); + je_sdallocx(ptr, size, /* flags */ MALLOCX_ALIGN(alignment)); } /*