Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build #70

Merged
merged 1 commit into from
Jul 9, 2024
Merged

Fix build #70

merged 1 commit into from
Jul 9, 2024

Conversation

dscho
Copy link
Member

@dscho dscho commented Jul 8, 2024

This is a backport from 7e3c833592 (Cygwin: suppress a warning generated with w32api >= 12.0.0, 2024-06-07) and is a companion-in-spirit of msys2/msys2-runtime#215.

w32api 12.0.0 adds the returns_twice attribute to RtlCaptureContext().
There's some data-flow interaction with using it inside a while loop
which causes a maybe-uninitialized warning.

../../../../winsup/cygwin/exceptions.cc: In member function 'int _cygtls::call_signal_handler()':
../../../../winsup/cygwin/exceptions.cc:1720:33: error: '<anonymous>' may be used uninitialized in this function [-Werror=maybe-uninitialized]

Backported-from: 7e3c833592 (Cygwin: suppress a warning generated with w32api >= 12.0.0, 2024-06-07)
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho dscho self-assigned this Jul 8, 2024
@dscho dscho merged commit 4b3a2e0 into git-for-windows:main Jul 9, 2024
2 checks passed
@dscho dscho deleted the fix-build branch July 9, 2024 07:51
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