From: Michael Snyder Date: Mon, 28 Feb 2011 23:17:07 +0000 (+0000) Subject: 2011-02-28 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6b4511abfdda5d77d914795085fc0ccb48e9b37e;p=binutils-gdb.git 2011-02-28 Michael Snyder * coffread.c (coff_end_symtab): Delete unused variable. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 69d2b639a1f..e914533c336 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ 2011-02-28 Michael Snyder + * coffread.c (coff_end_symtab): Delete unused variable. + * dwarf2read.c (dw2_get_file_names): Discard unused value. (dwarf2_add_typedef): Delete unused variable. (read_namespace): Ditto. diff --git a/gdb/coffread.c b/gdb/coffread.c index b300aa9ae25..156661128e2 100644 --- a/gdb/coffread.c +++ b/gdb/coffread.c @@ -405,12 +405,10 @@ complete_symtab (char *name, CORE_ADDR start_addr, unsigned int size) static void coff_end_symtab (struct objfile *objfile) { - struct symtab *symtab; - last_source_start_addr = current_source_start_addr; - symtab = end_symtab (current_source_end_addr, objfile, - SECT_OFF_TEXT (objfile)); + end_symtab (current_source_end_addr, objfile, + SECT_OFF_TEXT (objfile)); /* Reinitialize for beginning of new file. */ last_source_file = NULL;