public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [Ada] qnx-7.1: warning in sigtramp-qnx.c __gnat_sigtramp
@ 2022-05-18  8:43 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2022-05-18  8:43 UTC (permalink / raw)
  To: gcc-patches; +Cc: Doug Rupp

[-- Attachment #1: Type: text/plain, Size: 243 bytes --]

Fix compilation warning. The code was using a cast to struct sigcontext
*, which doesn't exist. It worked by accident.

Tested on x86_64-pc-linux-gnu, committed on trunk

gcc/ada/

	* sigtramp-qnx.c: Change struct sigcontext * to mcontext_t *.

[-- Attachment #2: patch.diff --]
[-- Type: text/x-diff, Size: 513 bytes --]

diff --git a/gcc/ada/sigtramp-qnx.c b/gcc/ada/sigtramp-qnx.c
--- a/gcc/ada/sigtramp-qnx.c
+++ b/gcc/ada/sigtramp-qnx.c
@@ -49,7 +49,7 @@ void __gnat_sigtramp (int signo, void *si, void *sc,
 void __gnat_sigtramp (int signo, void *si, void *ucontext,
                       __sigtramphandler_t * handler)
 {
-  struct sigcontext *mcontext = &((ucontext_t *) ucontext)->uc_mcontext;
+  mcontext_t *mcontext = &((ucontext_t *) ucontext)->uc_mcontext;
 
   __gnat_sigtramp_common (signo, si, mcontext, handler);
 }



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-18  8:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-18  8:43 [Ada] qnx-7.1: warning in sigtramp-qnx.c __gnat_sigtramp Pierre-Marie de Rodat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).