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

chromatic at svn.parrot.org chromatic at svn.parrot.org
Tue Sep 21 22:06:42 UTC 2010


Author: chromatic
Date: Tue Sep 21 22:06:42 2010
New Revision: 49211
URL: https://trac.parrot.org/parrot/changeset/49211

Log:
[IMCC] Fixed a compilation warning.

Modified:
   trunk/compilers/imcc/symreg.c

Modified: trunk/compilers/imcc/symreg.c
==============================================================================
--- trunk/compilers/imcc/symreg.c	Tue Sep 21 22:06:39 2010	(r49210)
+++ trunk/compilers/imcc/symreg.c	Tue Sep 21 22:06:42 2010	(r49211)
@@ -859,11 +859,14 @@
     }
 
     errno = 0;
+
     if (base == 10) {
-        (void)strtol(digits, NULL, base);
+        long int unused = strtol(digits, NULL, base);
+        UNUSED(unused);
     }
     else {
-        (void)strtoul(digits + 2, NULL, base);
+        unsigned long int unused = strtoul(digits + 2, NULL, base);
+        UNUSED(unused);
     }
 
     return errno ? 1 : 0;


More information about the parrot-commits mailing list