This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] More -Wmissing-prototypes fixes


Hello,

I ran into a couple more -Wmissing-prototypes build failures.

Fixed by the following patch, committed as obvious.

Bye,
Ulrich


ChangeLog:

	Fix -Wmissing-prototypes build.
	* ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
	* remote-sim.c (gdbsim_has_all_memory): Likewise.
	(gdbsim_has_memory): Likewise.


Index: gdb/ppc-linux-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/ppc-linux-nat.c,v
retrieving revision 1.109
diff -u -p -r1.109 ppc-linux-nat.c
--- gdb/ppc-linux-nat.c	12 Feb 2012 19:25:29 -0000	1.109
+++ gdb/ppc-linux-nat.c	2 Mar 2012 13:34:28 -0000
@@ -1351,7 +1351,8 @@ store_ppc_registers (const struct regcac
 }
 
 /* Fetch the AT_HWCAP entry from the aux vector.  */
-unsigned long ppc_linux_get_hwcap (void)
+static unsigned long
+ppc_linux_get_hwcap (void)
 {
   CORE_ADDR field;
 
Index: gdb/remote-sim.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-sim.c,v
retrieving revision 1.105
diff -u -p -r1.105 remote-sim.c
--- gdb/remote-sim.c	16 Feb 2012 18:30:43 -0000	1.105
+++ gdb/remote-sim.c	2 Mar 2012 13:34:28 -0000
@@ -1239,7 +1239,7 @@ gdbsim_pid_to_str (struct target_ops *op
 
 /* Simulator memory may be accessed after the program has been loaded.  */
 
-int
+static int
 gdbsim_has_all_memory (struct target_ops *ops)
 {
   struct sim_inferior_data *sim_data
@@ -1251,7 +1251,7 @@ gdbsim_has_all_memory (struct target_ops
   return 1;
 }
 
-int
+static int
 gdbsim_has_memory (struct target_ops *ops)
 {
   struct sim_inferior_data *sim_data
-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]