diff options
author | Doug Rupp <rupp@adacore.com> | 2022-04-08 14:12:24 -0700 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2022-05-18 08:41:09 +0000 |
commit | 17cd8bf5a4204b56c337614c0c0752527409f993 (patch) | |
tree | 3bb281bb3f4f5533527adb4867c64de40a8b7d96 /gcc | |
parent | 6999173410bac7ed473dcb0261a24bb5d50aeea6 (diff) | |
download | gcc-17cd8bf5a4204b56c337614c0c0752527409f993.zip gcc-17cd8bf5a4204b56c337614c0c0752527409f993.tar.gz gcc-17cd8bf5a4204b56c337614c0c0752527409f993.tar.bz2 |
[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 *.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ada/sigtramp-qnx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/sigtramp-qnx.c b/gcc/ada/sigtramp-qnx.c index f44b971..b3a5fa8 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); } |