From 40b8da6059ee73f683e08fa8f62ac52e4c9b68a1 Mon Sep 17 00:00:00 2001 From: Soren Soe <2106410+stsoe@users.noreply.github.com> Date: Fri, 19 Jun 2026 13:20:08 -0700 Subject: [PATCH] Newer 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/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 85a8646d..528d41f7 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -117,6 +117,7 @@ if(MSVC) /wd4710 /wd4711 /wd4324 + /wd4255 -DXAIE_FEATURE_MSVC ${IO_BACKEND} )