This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [obv] Add static to infwait_state
On 11/19/2012 11:31 PM, Pedro Alves wrote:
> Yeah, and at least init_infwait_state too could be made static as well.
Indeed! The patch below is to make 'init_infwait_state' static.
Committed.
--
Yao (éå)
gdb:
2012-11-30 Yao Qi <yao@codesourcery.com>
* infrun.c: Make the declaration of 'init_infwait_state'
static.
(init_infwait_state): Make it 'static'.
---
gdb/infrun.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gdb/infrun.c b/gdb/infrun.c
index e145af6..3e48c04 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -397,7 +397,7 @@ static void context_switch (ptid_t ptid);
void init_thread_stepping_state (struct thread_info *tss);
-void init_infwait_state (void);
+static void init_infwait_state (void);
static const char follow_fork_mode_child[] = "child";
static const char follow_fork_mode_parent[] = "parent";
@@ -3033,7 +3033,7 @@ adjust_pc_after_break (struct execution_control_state *ecs)
}
}
-void
+static void
init_infwait_state (void)
{
waiton_ptid = pid_to_ptid (-1);
--
1.7.7.6