Fix -Wmissing-prototypes build.
authorUlrich Weigand <uweigand@de.ibm.com>
Fri, 2 Mar 2012 13:38:39 +0000 (13:38 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Fri, 2 Mar 2012 13:38:39 +0000 (13:38 +0000)
* ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
* remote-sim.c (gdbsim_has_all_memory): Likewise.
(gdbsim_has_memory): Likewise.

gdb/ChangeLog
gdb/ppc-linux-nat.c
gdb/remote-sim.c

index fbb62a7eabcc632a30b25ad7a57ba7e59e9e5ca3..772f7fb9e4093fc5789bddb992dbb19e13d22122 100644 (file)
@@ -1,3 +1,10 @@
+2012-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       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.
+
 2012-03-02  Yao Qi  <yao@codesourcery.com>
 
        Fix -Wmissing-prototypes build.
index 2c98f765e836428983dddf940de39e543586b3d5..1bd157be96c145df2fed72d42a44d261eae3961a 100644 (file)
@@ -1351,7 +1351,8 @@ store_ppc_registers (const struct regcache *regcache, int tid)
 }
 
 /* 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 ee73cce47c5285bbe327955faa3676af9a27328c..75a7941cb33a280b2df3e78ff395d3db70c1361e 100644 (file)
@@ -1239,7 +1239,7 @@ gdbsim_pid_to_str (struct target_ops *ops, ptid_t ptid)
 
 /* 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 *ops)
   return 1;
 }
 
-int
+static int
 gdbsim_has_memory (struct target_ops *ops)
 {
   struct sim_inferior_data *sim_data
This page took 0.030961 seconds and 4 git commands to generate.