From 5715d26e12b1a62828f29f7d5470e99ad4122260 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Tue, 1 Mar 2011 00:26:14 +0000 Subject: [PATCH] 2011-02-28 Michael Snyder * linespec.c (decode_objc): Delete unused variable. --- gdb/ChangeLog | 2 ++ gdb/linespec.c | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 92db74b920d..e5612a61cba 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ 2011-02-28 Michael Snyder + * linespec.c (decode_objc): Delete unused variable. + * tui/tui-regs.c (tui_register_format): Delete unused variable. * dwarf2read.c (add_partial_symbol): Discard unused values. diff --git a/gdb/linespec.c b/gdb/linespec.c index e801381e083..9183064d704 100644 --- a/gdb/linespec.c +++ b/gdb/linespec.c @@ -1122,7 +1122,6 @@ decode_objc (char **argptr, int funfirstline, struct symtab *file_symtab, struct symtabs_and_lines values; struct symbol **sym_arr = NULL; struct symbol *sym = NULL; - char *copy = NULL; struct block *block = NULL; unsigned i1 = 0; unsigned i2 = 0; @@ -1143,7 +1142,7 @@ decode_objc (char **argptr, int funfirstline, struct symtab *file_symtab, set_language (save_language); } - copy = find_imps (file_symtab, block, *argptr, NULL, &i1, &i2); + find_imps (file_symtab, block, *argptr, NULL, &i1, &i2); if (i1 > 0) { @@ -1151,8 +1150,7 @@ decode_objc (char **argptr, int funfirstline, struct symtab *file_symtab, alloca ((i1 + 1) * sizeof (struct symbol *)); sym_arr[i1] = NULL; - copy = find_imps (file_symtab, block, *argptr, sym_arr, &i1, &i2); - *argptr = copy; + *argptr = find_imps (file_symtab, block, *argptr, sym_arr, &i1, &i2); } /* i1 now represents the TOTAL number of matches found. -- 2.30.2