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 69d2b639a1f37759721dbbf90e934cd9a8add5b2..e914533c3368152fe113fa14840af180684bbe5b 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 b300aa9ae25f87e3661709f62940f845a2c49bb7..156661128e2ac1e8743c33f081e91ed4ea7f64e8 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;