Skip to content

Windows SDK version results in build warning treated as error#4

Open
stsoe wants to merge 1 commit into
Xilinx:mainfrom
stsoe:wd4255
Open

Windows SDK version results in build warning treated as error#4
stsoe wants to merge 1 commit into
Xilinx:mainfrom
stsoe:wd4255

Conversation

@stsoe

@stsoe stsoe commented Jun 19, 2026

Copy link
Copy Markdown

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

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>
@stsoe stsoe requested a review from ramanjan-amd June 19, 2026 20:25
@stsoe stsoe changed the title Newer Windows SDK results in build warning treated as error Windows SDK version results in build warning treated as error Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant