[svn:parrot] r45365 - trunk/src/pmc

petdance at svn.parrot.org petdance at svn.parrot.org
Thu Apr 1 03:54:56 UTC 2010


Author: petdance
Date: Thu Apr  1 03:54:54 2010
New Revision: 45365
URL: https://trac.parrot.org/parrot/changeset/45365

Log:
Fixed return flags on a func, and removed unused func

Modified:
   trunk/src/pmc/integer.pmc

Modified: trunk/src/pmc/integer.pmc
==============================================================================
--- trunk/src/pmc/integer.pmc	Thu Apr  1 02:29:54 2010	(r45364)
+++ trunk/src/pmc/integer.pmc	Thu Apr  1 03:54:54 2010	(r45365)
@@ -28,7 +28,7 @@
 static void maybe_throw_overflow_error(PARROT_INTERP)
         __attribute__nonnull__(1);
 
-PARROT_WARN_UNUSED_RESULT
+PARROT_IGNORABLE_RESULT
 PARROT_CANNOT_RETURN_NULL
 static PMC* upgrade_self_to_bignum(PARROT_INTERP, ARGMOD(PMC *self))
         __attribute__nonnull__(1)
@@ -56,7 +56,7 @@
             "Integer overflow");
 }
 
-PARROT_WARN_UNUSED_RESULT
+PARROT_IGNORABLE_RESULT
 PARROT_CANNOT_RETURN_NULL
 static PMC*
 upgrade_self_to_bignum(PARROT_INTERP, ARGMOD(PMC *self))
@@ -381,6 +381,7 @@
 
     MULTI void i_add(Complex value) {
         const INTVAL a = SELF.get_integer();
+        UNUSED(a);
 
         Parrot_pmc_reuse(INTERP, SELF, enum_class_Complex, 0);
         VTABLE_set_number_native(INTERP, SELF,
@@ -401,7 +402,6 @@
         if ((c^a) >= 0 || (c^b) >= 0)
             VTABLE_set_integer_native(INTERP, SELF, c);
         else {
-            PMC *temp;
             maybe_throw_overflow_error(interp);
             SELF = upgrade_self_to_bignum(interp, SELF);
             VTABLE_i_add_int(interp, SELF, b);
@@ -882,7 +882,6 @@
 
     VTABLE void i_floor_divide_float(FLOATVAL value) {
         FLOATVAL f;
-        INTVAL   self_val;
 
         if (FLOAT_IS_ZERO(value))
             Parrot_ex_throw_from_c_args(INTERP, NULL, EXCEPTION_DIV_BY_ZERO,


More information about the parrot-commits mailing list