[PATCH] Remove unnecessary declaration of "cmdlist".

Yao Qi yao@codesourcery.com
Wed Feb 13 13:44:00 GMT 2013


It is unnecessary to declare "cmdlist" inside function help_cmd and
help_all, so remove the declarations.

gdb:

2013-02-13  Yao Qi  <yao@codesourcery.com>

	* cli/cli-decode.c (help_cmd): Remove the declaration of
	"cmdlist".
	(help_all): Likewise.
---
 gdb/cli/cli-decode.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c
index 27d94bb..7ba2c80 100644
--- a/gdb/cli/cli-decode.c
+++ b/gdb/cli/cli-decode.c
@@ -917,7 +917,6 @@ void
 help_cmd (char *command, struct ui_file *stream)
 {
   struct cmd_list_element *c;
-  extern struct cmd_list_element *cmdlist;
 
   if (!command)
     {
@@ -1049,7 +1048,6 @@ static void
 help_all (struct ui_file *stream)
 {
   struct cmd_list_element *c;
-  extern struct cmd_list_element *cmdlist;
   int seen_unclassified = 0;
 
   for (c = cmdlist; c; c = c->next)
-- 
1.7.7.6



More information about the Gdb-patches mailing list