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

https://gcc.gnu.org/g:17cd8bf5a4204b56c337614c0c0752527409f993

commit r13-612-g17cd8bf5a4204b56c337614c0c0752527409f993
Author: Doug Rupp <rupp@adacore.com>
Date:   Fri Apr 8 14:12:24 2022 -0700

    [Ada] qnx-7.1: warning in sigtramp-qnx.c __gnat_sigtramp
    
    Fix compilation warning. The code was using a cast to struct sigcontext
    *, which doesn't exist. It worked by accident.
    
    gcc/ada/
    
            * sigtramp-qnx.c: Change struct sigcontext * to mcontext_t *.

Diff:
---
 gcc/ada/sigtramp-qnx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/ada/sigtramp-qnx.c b/gcc/ada/sigtramp-qnx.c
index f44b971113e..b3a5fa83b81 100644
--- 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:45 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:45 [gcc r13-612] [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).