This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit-obvious] sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.


Hi,

I have made the following obvious commit to sh-tdep.c, which removes an
unused variable:

http://sourceware.org/ml/gdb-cvs/2012-07/msg00173.html

Regards,
Siddhesh

Index: gdb/ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/ChangeLog,v
retrieving revision 1.14507
diff -u -r1.14507 ChangeLog
--- gdb/ChangeLog	20 Jul 2012 17:54:05 -0000	1.14507
+++ gdb/ChangeLog	22 Jul 2012 16:49:19 -0000
@@ -1,3 +1,7 @@
+2012-07-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
+
+	* sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
+
 2012-07-20  Jeff Kenton  <jkenton@tilera.com>
 
 	* tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
Index: gdb/sh-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/sh-tdep.c,v
retrieving revision 1.245
diff -u -r1.245 sh-tdep.c
--- gdb/sh-tdep.c	8 Jun 2012 14:24:57 -0000	1.245
+++ gdb/sh-tdep.c	22 Jul 2012 16:49:31 -0000
@@ -1032,8 +1032,6 @@
 static int
 sh_treat_as_flt_p (struct type *type)
 {
-  int len = TYPE_LENGTH (type);
-
   /* Ordinary float types are obviously treated as float.  */
   if (TYPE_CODE (type) == TYPE_CODE_FLT)
     return 1;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]