This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[obv] Add static to infwait_state
- From: Yao Qi <yao at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Date: Mon, 19 Nov 2012 11:08:28 +0800
- Subject: [obv] Add static to infwait_state
Hi,
Variable 'infwait_state' is not used out of file infrun.c, so 'static'
can be added. It is obvious, and I'll check it in.
gdb:
2012-11-19 Yao Qi <yao@codesourcery.com>
* infrun.c (infwait_state): Add static.
---
gdb/infrun.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 4efc2af..b29fd2f 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -2392,7 +2392,7 @@ enum infwait_states
ptid_t waiton_ptid;
/* Current inferior wait state. */
-enum infwait_states infwait_state;
+static enum infwait_states infwait_state;
/* Data to be passed around while handling an event. This data is
discarded between events. */
--
1.7.7.6