2011-02-28 Michael Snyder <msnyder@vmware.com>
authorMichael Snyder <msnyder@vmware.com>
Mon, 28 Feb 2011 23:17:07 +0000 (23:17 +0000)
committerMichael Snyder <msnyder@vmware.com>
Mon, 28 Feb 2011 23:17:07 +0000 (23:17 +0000)
* coffread.c (coff_end_symtab): Delete unused variable.

gdb/ChangeLog
gdb/coffread.c

index 69d2b63..e914533 100644 (file)
@@ -1,5 +1,7 @@
 2011-02-28  Michael Snyder  <msnyder@vmware.com>
 
+       * 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.
index b300aa9..1566611 100644 (file)
@@ -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;