]> git.vpit.fr Git - perl/modules/Scope-Upper.git/commitdiff
Silence a couple of warnings reported by gcc
authorVincent Pit <vince@profvince.com>
Tue, 11 Sep 2012 12:27:00 +0000 (14:27 +0200)
committerVincent Pit <vince@profvince.com>
Thu, 13 Sep 2012 20:50:13 +0000 (22:50 +0200)
Upper.xs

index f90f31917886f4c1eef471e1da9f72e3b5bbd3b5..906065a73020430db9eebed6735ada1ed05836c9 100644 (file)
--- a/Upper.xs
+++ b/Upper.xs
@@ -286,7 +286,6 @@ STATIC void su_uid_storage_dup(pTHX_ su_uid_storage *new_cxt, const su_uid_stora
  if (old_map) {
   su_uid **new_map = new_cxt->map;
   STRLEN old_used  = old_cxt->used;
-  STRLEN old_alloc = old_cxt->alloc;
   STRLEN new_used, new_alloc;
   STRLEN i;
 
@@ -1172,7 +1171,7 @@ STATIC int su_uplevel_goto_static(const OP *o) {
    case OP_GOTO:
     return 1;
    default:
-    if (su_uplevel_goto_static(cUNOPo->op_first))
+    if (su_uplevel_goto_static(((const UNOP *) o)->op_first))
      return 1;
     break;
   }