From 9e97209abf1aff2e8298ac8cf49c7ce0b9788aa1 Mon Sep 17 00:00:00 2001 From: Soren Soe <2106410+stsoe@users.noreply.github.com> Date: Sat, 4 Jul 2026 16:28:52 -0700 Subject: [PATCH] Some Windows SDK results in build warning treated as error Add target compile option disabling C4255. ``` C:\Program Files (x86)\Windows Kits\10\Include\10.0.27673.0\um\winuser.h(16145,1): error C2220: the following warning is treated as an error [...\src\aie_codegen.vcxproj] (compiling source file 'src/io_backend/ext/xaie_sim.c') C:\Program Files (x86)\Windows Kits\10\Include\10.0.27673.0\um\winuser.h(16145,1): warning C4255: 'GetCurrentMonitorTopologyId': no function prototype given: converting '()' to '(void)' [...\src\aie_codegen.vcxproj] (compiling source file 'src/io_backend/ext/xaie_sim.c') ``` Added ``` target_compile_options(... PRIVATE /wd4255) ``` Please, consider fixing the code instead of disabling warnings. SDK used is Windows SDK version 10.0.27673.0 Signed-off-by: Soren Soe <2106410+stsoe@users.noreply.github.com> --- src/cmake/AieCodegenMsvc.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cmake/AieCodegenMsvc.cmake b/src/cmake/AieCodegenMsvc.cmake index 4faa02b2..c0a0778d 100644 --- a/src/cmake/AieCodegenMsvc.cmake +++ b/src/cmake/AieCodegenMsvc.cmake @@ -24,6 +24,7 @@ function(aie_codegen_apply_msvc_options target) /wd4710 /wd4711 /wd4324 + /wd4255 ) if(AIE_CODEGEN_ENABLE_WERROR) list(APPEND _msvc_compile_opts /WX)