public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-5103] rs6000, libgcc: Fix up -Wmissing-prototypes warning on rs6000/linux-unwind.h
@ 2021-11-10  9:25 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2021-11-10  9:25 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:75ef0353a2d31dad1bda8e35f1849024f7f1e941

commit r12-5103-g75ef0353a2d31dad1bda8e35f1849024f7f1e941
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Wed Nov 10 10:24:49 2021 +0100

    rs6000, libgcc: Fix up -Wmissing-prototypes warning on rs6000/linux-unwind.h
    
    Jonathan reported and I've verified a
    In file included from ../../../libgcc/unwind-dw2.c:412:
    ./md-unwind-support.h:398:6: warning: no previous prototype for ‘ppc_backchain_fallback’ [-Wmissing-prototypes]
      398 | void ppc_backchain_fallback (struct _Unwind_Context *context, void *a)
          |      ^~~~~~~~~~~~~~~~~~~~~~
    warning on powerpc*-linux* libgcc build.
    
    All the other MD_* macro functions are static, so I think the following
    is the right thing rather than adding a previous prototype for
    ppc_backchain_fallback.
    
    2021-11-10  Jakub Jelinek  <jakub@redhat.com>
    
            * config/rs6000/linux-unwind.h (ppc_back_fallback): Make it static,
            formatting fix.

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

diff --git a/libgcc/config/rs6000/linux-unwind.h b/libgcc/config/rs6000/linux-unwind.h
index 8deccc1d650..47884973ca5 100644
--- a/libgcc/config/rs6000/linux-unwind.h
+++ b/libgcc/config/rs6000/linux-unwind.h
@@ -395,7 +395,8 @@ struct frame_layout
 };
 
 
-void ppc_backchain_fallback (struct _Unwind_Context *context, void *a)
+static void
+ppc_backchain_fallback (struct _Unwind_Context *context, void *a)
 {
   struct frame_layout *current;
   struct trace_arg *arg = a;


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

only message in thread, other threads:[~2021-11-10  9:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-10  9:25 [gcc r12-5103] rs6000, libgcc: Fix up -Wmissing-prototypes warning on rs6000/linux-unwind.h Jakub Jelinek

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).