Skip to content

Commit 8d59f19

Browse files
committed
mimalloc: silence -Wconstant-conversion warnings
``` ../../../system/lib/mimalloc/src/os.c:36:3: error: implicit conversion from 'unsigned long long' to 'size_t' (aka 'unsigned long') changes value from 4294967296 to 0 [-Werror,-Wconstant-conversion] 32 | static mi_os_mem_config_t mi_os_mem_config = { | ~ 33 | 4096, // page size 34 | 0, // large page size (usually 2MiB) 35 | 4096, // allocation granularity 36 | MI_DEFAULT_PHYSICAL_MEMORY, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../system/lib/mimalloc/src/os.c:26:40: note: expanded from macro 'MI_DEFAULT_PHYSICAL_MEMORY' 26 | #define MI_DEFAULT_PHYSICAL_MEMORY 4*MI_GiB | ~^~~~~~~ 1 error generated. ```
1 parent e4cde3d commit 8d59f19

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/system_libs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1796,6 +1796,7 @@ class libmimalloc(MTLibrary):
17961796
'-Wno-unused-but-set-variable',
17971797
'-Wno-unused-variable',
17981798
'-Wno-deprecated-pragma',
1799+
'-Wno-constant-conversion',
17991800
# build emmalloc as only a system allocator, without exporting itself onto
18001801
# malloc/free in the global scope
18011802
'-DEMMALLOC_NO_STD_EXPORTS',

0 commit comments

Comments
 (0)