This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

[patch] real.c: Remove a local variable that is set but not used.


Hi,

Attached is a patch to remove a local variable that is set but not
used.

Bootstrapped on i686-pc-linux-gnu.  Committed as obvious.

Kazu Hirata

2005-03-09  Kazu Hirata  <kazu@cs.umass.edu>

	* real.c (real_nan): Remove neg.

Index: real.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/real.c,v
retrieving revision 1.151
diff -u -d -p -r1.151 real.c
--- real.c	25 Jan 2005 20:21:55 -0000	1.151
+++ real.c	8 Mar 2005 23:25:07 -0000
@@ -2117,7 +2117,6 @@ real_nan (REAL_VALUE_TYPE *r, const char
   else
     {
       int base = 10, d;
-      bool neg = false;
 
       memset (r, 0, sizeof (*r));
       r->cl = rvc_nan;
@@ -2127,7 +2126,7 @@ real_nan (REAL_VALUE_TYPE *r, const char
       while (ISSPACE (*str))
 	str++;
       if (*str == '-')
-	str++, neg = true;
+	str++;
       else if (*str == '+')
 	str++;
       if (*str == '0')


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