void function should not return anything

Found by GCC 16 (-Wpedantic).
This commit is contained in:
Christoph Grüninger 2026-05-19 21:48:05 +02:00
parent 6b24522545
commit c09aebe791
2 changed files with 3 additions and 3 deletions

View file

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

View file

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