From: Ulrich Weigand Date: Fri, 2 Mar 2012 13:38:39 +0000 (+0000) Subject: Fix -Wmissing-prototypes build. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b261e0c5364661b66d55f4e77e95e7d09af8b9aa;p=binutils-gdb.git 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fbb62a7eabc..772f7fb9e40 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2012-03-02 Ulrich Weigand + + 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 Fix -Wmissing-prototypes build. diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c index 2c98f765e83..1bd157be96c 100644 --- a/gdb/ppc-linux-nat.c +++ b/gdb/ppc-linux-nat.c @@ -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; diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index ee73cce47c5..75a7941cb33 100644 --- a/gdb/remote-sim.c +++ b/gdb/remote-sim.c @@ -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