public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Florian Weimer <fw@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r14-4615] csky: Fix -Wincompatible-pointer-types warning during libgcc build
Date: Fri, 13 Oct 2023 07:37:26 +0000 (GMT)	[thread overview]
Message-ID: <20231013073726.62EC33857C4F@sourceware.org> (raw)

https://gcc.gnu.org/g:6e5216ec17164b480c780877b47a0df79be3ef61

commit r14-4615-g6e5216ec17164b480c780877b47a0df79be3ef61
Author: Florian Weimer <fweimer@redhat.com>
Date:   Fri Oct 13 09:34:36 2023 +0200

    csky: Fix -Wincompatible-pointer-types warning during libgcc build
    
    libgcc/
    
            * config/csky/linux-unwind.h (csky_fallback_frame_state): Add
            missing cast.

Diff:
---
 libgcc/config/csky/linux-unwind.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libgcc/config/csky/linux-unwind.h b/libgcc/config/csky/linux-unwind.h
index 66b2a44e047..1acef215974 100644
--- a/libgcc/config/csky/linux-unwind.h
+++ b/libgcc/config/csky/linux-unwind.h
@@ -75,7 +75,7 @@ csky_fallback_frame_state (struct _Unwind_Context *context,
 	siginfo_t info;
 	ucontext_t uc;
       } *_rt = context->cfa;
-      sc = &(_rt->uc.uc_mcontext);
+      sc = (struct sigcontext *) &(_rt->uc.uc_mcontext);
     }
   else
     return _URC_END_OF_STACK;

                 reply	other threads:[~2023-10-13  7:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231013073726.62EC33857C4F@sourceware.org \
    --to=fw@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).