[svn:parrot] r45037 - trunk/compilers/imcc

petdance at svn.parrot.org petdance at svn.parrot.org
Thu Mar 18 22:17:54 UTC 2010


Author: petdance
Date: Thu Mar 18 22:17:53 2010
New Revision: 45037
URL: https://trac.parrot.org/parrot/changeset/45037

Log:
removed unused var i in int_overflows()

Modified:
   trunk/compilers/imcc/symreg.c

Modified: trunk/compilers/imcc/symreg.c
==============================================================================
--- trunk/compilers/imcc/symreg.c	Thu Mar 18 22:14:14 2010	(r45036)
+++ trunk/compilers/imcc/symreg.c	Thu Mar 18 22:17:53 2010	(r45037)
@@ -860,7 +860,6 @@
 int_overflows(ARGIN(const SymReg *r))
 {
     ASSERT_ARGS(int_overflows)
-    INTVAL i;
     int base;
     const char *digits;
 
@@ -883,10 +882,10 @@
 
     errno = 0;
     if (base == 10) {
-        i = strtol(digits, NULL, base);
+        (void)strtol(digits, NULL, base);
     }
     else {
-        i = strtoul(digits + 2, NULL, base);
+        (void)strtoul(digits + 2, NULL, base);
     }
 
     return errno ? 1 : 0;


More information about the parrot-commits mailing list