forked from msys2/MSYS2-packages
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
msys2-runtime: update to 4b3a2e08f545432b62461313082193d6df09b6b8
Signed-off-by: Johannes Schindelin <[email protected]>
- Loading branch information
Showing
3 changed files
with
44 additions
and
7 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
msys2-runtime/0067-Cygwin-suppress-a-warning-generated-with-w32api-12.0.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
From 4b3a2e08f545432b62461313082193d6df09b6b8 Mon Sep 17 00:00:00 2001 | ||
From: Johannes Schindelin <[email protected]> | ||
Date: Mon, 8 Jul 2024 14:22:48 +0200 | ||
Subject: [PATCH 67/N] Cygwin: suppress a warning generated with w32api >= | ||
12.0.0 | ||
|
||
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 <[email protected]> | ||
--- | ||
winsup/cygwin/exceptions.cc | 3 +++ | ||
1 file changed, 3 insertions(+) | ||
|
||
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc | ||
index b843063..1faeda2 100644 | ||
--- a/winsup/cygwin/exceptions.cc | ||
+++ b/winsup/cygwin/exceptions.cc | ||
@@ -1646,7 +1646,10 @@ _cygtls::call_signal_handler () | ||
context, unwind to the caller and in case we're called | ||
from sigdelayed, fix the instruction pointer accordingly. */ | ||
context.uc_mcontext.ctxflags = CONTEXT_FULL; | ||
+#pragma GCC diagnostic push | ||
+#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" | ||
RtlCaptureContext ((PCONTEXT) &context.uc_mcontext); | ||
+#pragma GCC diagnostic pop | ||
__unwind_single_frame ((PCONTEXT) &context.uc_mcontext); | ||
if (stackptr > stack) | ||
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
87d5722901e1172a57aa4d4e3db84fbafe70d19b | ||
4b3a2e08f545432b62461313082193d6df09b6b8 |