From c25cbbe44ec00491f725b52dadc4c7ec63ea0b27 Mon Sep 17 00:00:00 2001 From: Devin Doucette Date: Tue, 17 Mar 2026 12:45:49 -0600 Subject: Suppressed C5105 when building rpmalloc (#852) Building rpmalloc can hit a warning in the Windows SDK. `C: \Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winbase.h(9572): warning C5105: macro expansion producing 'defined' has undefined behavior` Co-Authored-By: Stefan Boberg --- thirdparty/xmake.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/thirdparty/xmake.lua b/thirdparty/xmake.lua index e8832d50a..7377cf0f6 100644 --- a/thirdparty/xmake.lua +++ b/thirdparty/xmake.lua @@ -38,6 +38,7 @@ target('rpmalloc') set_languages("c17", "cxx20") if is_os("windows") and not (get_config("toolchain") or ""):find("clang") then add_cflags("/experimental:c11atomics", {force=true, tools="cl"}) + add_cflags("/wd5105", {tools="cl"}) end add_defines("RPMALLOC_FIRST_CLASS_HEAPS=1", "ENABLE_STATISTICS=1", "ENABLE_OVERRIDE=0") add_files("rpmalloc/rpmalloc.c") -- cgit v1.2.3