mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-26 00:53:34 +03:00
void function should not return anything
Found by GCC 16 (-Wpedantic).
This commit is contained in:
parent
6b24522545
commit
c09aebe791
2 changed files with 3 additions and 3 deletions
|
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue