This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 1/3] add static to mi_cmds
Hi,
'mi_cmds' is not used out of file mi-cmds.c, so 'static' is added to
it. It is obvious, and I'll check it in.
gdb:
2012-08-27 Yao Qi <yao@codesourcery.com>
* mi/mi-cmds.c (mi_cmds): Add 'static'.
---
gdb/mi/mi-cmds.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gdb/mi/mi-cmds.c b/gdb/mi/mi-cmds.c
index 79fbba1..aebc2b8 100644
--- a/gdb/mi/mi-cmds.c
+++ b/gdb/mi/mi-cmds.c
@@ -30,7 +30,7 @@ struct mi_cmd;
static struct mi_cmd **lookup_table (const char *command);
static void build_table (struct mi_cmd *commands);
-struct mi_cmd mi_cmds[] =
+static struct mi_cmd mi_cmds[] =
{
{ "ada-task-info", { NULL, 0 }, mi_cmd_ada_task_info },
{ "add-inferior", { NULL, 0 }, mi_cmd_add_inferior },
--
1.7.7.6