From 6f5e93622126860eaa9c57ae1bd889c803f13168 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Fri, 9 Mar 2012 00:31:15 +0000 Subject: [PATCH] Add missing _initialize_ravenscar_sparc prototype. This is required now that we compile GDB with -Wmissing-prototype. gdb/ChangeLog: * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add prototype. --- gdb/ChangeLog | 5 +++++ gdb/ravenscar-sparc-thread.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index aa717ca2d31..26ee14b6811 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-03-08 Joel Brobecker + + * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add + prototype. + 2012-03-08 Joel Brobecker * ravenscar-thread.c (_initialize_ravenscar): Add prototype. diff --git a/gdb/ravenscar-sparc-thread.c b/gdb/ravenscar-sparc-thread.c index 93af256b516..9132109d62b 100644 --- a/gdb/ravenscar-sparc-thread.c +++ b/gdb/ravenscar-sparc-thread.c @@ -175,6 +175,9 @@ ravenscar_sparc_store_registers (struct regcache *regcache, int regnum) buf_size); } +/* Provide a prototype to silence -Wmissing-prototypes. */ +extern void _initialize_ravenscar_sparc (void); + void _initialize_ravenscar_sparc (void) { -- 2.30.2