From: Aleksandar Ristovski Date: Fri, 1 Feb 2013 20:08:45 +0000 (+0000) Subject: 2013-02-01 Aleksandar Ristovski X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=8db60374ebbe2b436929e27ce80b2dddb2c4eb13;p=deliverable%2Fbinutils-gdb.git 2013-02-01 Aleksandar Ristovski * ada-valprint.c (ada_print_floating): Remove unused 'len'. Reference: http://sourceware.org/ml/gdb-patches/2013-01/msg00732.html --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5efe244cf8..50d84a164b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2013-02-01 Aleksandar Ristovski + + * ada-valprint.c (ada_print_floating): Remove unused 'len'. + 2013-02-01 Aleksandar Ristovski * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'. diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c index 836123f457..5287ce5724 100644 --- a/gdb/ada-valprint.c +++ b/gdb/ada-valprint.c @@ -320,7 +320,6 @@ ada_print_floating (const gdb_byte *valaddr, struct type *type, { char buffer[64]; char *s, *result; - int len; struct ui_file *tmp_stream = mem_fileopen (); struct cleanup *cleanups = make_cleanup_ui_file_delete (tmp_stream); @@ -329,7 +328,6 @@ ada_print_floating (const gdb_byte *valaddr, struct type *type, do_cleanups (cleanups); result = buffer; - len = strlen (result); /* Modify for Ada rules. */