aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog2
-rw-r--r--gdb/tui/tui-regs.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b173285..92db74b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,7 @@
2011-02-28 Michael Snyder <msnyder@vmware.com>
+ * tui/tui-regs.c (tui_register_format): Delete unused variable.
+
* dwarf2read.c (add_partial_symbol): Discard unused values.
(read_base_type): Delete unused variable.
diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c
index 1d2bb23..b0d8622 100644
--- a/gdb/tui/tui-regs.c
+++ b/gdb/tui/tui-regs.c
@@ -689,7 +689,6 @@ tui_register_format (struct frame_info *frame,
const char *name;
struct cleanup *cleanups;
char *p, *s;
- struct type *type = register_type (gdbarch, regnum);
name = gdbarch_register_name (gdbarch, regnum);
if (name == 0)