mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-24 05:33:06 +00:00
void function should not return anything
Found by GCC 16 (-Wpedantic).
This commit is contained in:
committed by
Guangli Dai
parent
c823cf2f3c
commit
c22d929ab4
@@ -1514,10 +1514,10 @@ arena_ptr_array_flush_impl(tsd_t *tsd, szind_t binind,
|
|||||||
* '...' is morally equivalent, the code itself needs slight tweaks.
|
* '...' is morally equivalent, the code itself needs slight tweaks.
|
||||||
*/
|
*/
|
||||||
if (small) {
|
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);
|
item_edata, nflush, stats_arena, merge_stats);
|
||||||
} else {
|
} 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);
|
item_edata, nflush, stats_arena, merge_stats);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1059,7 +1059,7 @@ je_free_sized(void *ptr, size_t size) {
|
|||||||
|
|
||||||
JEMALLOC_EXPORT void JEMALLOC_NOTHROW
|
JEMALLOC_EXPORT void JEMALLOC_NOTHROW
|
||||||
je_free_aligned_sized(void *ptr, size_t alignment, size_t size) {
|
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));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user