Skip to content

tests: scope MSVC C4815 suppression to reconstructor test - #863

Closed
ebraminio wants to merge 1 commit into
libusb:masterfrom
ebraminio:msvc-c4815-suppression
Closed

ebraminio wants to merge 1 commit into
libusb:masterfrom
ebraminio:msvc-c4815-suppression

Conversation

@ebraminio

Copy link
Copy Markdown
Contributor

MSVC 14.52, rolled out in the windows-2025-vs2026 image after 2026-11-20, diagnoses the intentional flexible-array base object in the reconstructor test under /W4 /WX:

warning C4815: 'static_pp_data': flexible array member in object will have no elements

Upstream's last Windows CI run used MSVC 14.51 and passed. Scope the suppression to the reconstructor helper so the newer compiler does not fail CI. This is independent of the CRT-free work.

Assisted-by: deepseek-harness:deepseek-flash

MSVC 14.52, rolled out on the windows-2025-vs2026 image after 2026-11-20,
diagnoses the intentional flexible-array base object under /W4 /WX. This is
unrelated to the CRT-free backend; scope the suppression to the upstream
reconstructor helper so the new compiler does not fail CI.

Assisted-by: deepseek-harness:deepseek-flash
@ebraminio

ebraminio commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

This fixes the CI failure can be seen on the latest commit, https://github.com/libusb/hidapi/actions/runs/45616895103/job/139214497838 which wasn't related to that commit but the fact Visual Studio is updated.

@Youw Youw closed this in #864 Nov 25, 2026
@mcuee mcuee added the Test Related to built-in test (not hidtest) label Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Test Related to built-in test (not hidtest)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants