summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2010-09-12 12:27:19 +0100
committerDavid Mitchell <davem@iabyn.com>2010-09-12 12:27:19 +0100
commit790427a55372311797954fb3140cd3e0a4ae6d28 (patch)
tree0ee3a2acd8a9694acb549dc38bdff540b7d31b14 /op.c
parentb24b84ef00c067346532edb01a22dd2ed39c7852 (diff)
downloadperl-790427a55372311797954fb3140cd3e0a4ae6d28.tar.gz
fix a couple of -Dmad compiler warnings
Diffstat (limited to 'op.c')
-rw-r--r--op.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/op.c b/op.c
index f49ce82c5f..83800e12b7 100644
--- a/op.c
+++ b/op.c
@@ -8136,10 +8136,12 @@ Perl_ck_shift(pTHX_ OP *o)
argop = newUNOP(OP_RV2AV, 0, scalar(newGVOP(OP_GV, 0, PL_argvgv)));
#ifdef PERL_MAD
- OP * const oldo = o;
- o = newUNOP(type, 0, scalar(argop));
- op_getmad(oldo,o,'O');
- return o;
+ {
+ OP * const oldo = o;
+ o = newUNOP(type, 0, scalar(argop));
+ op_getmad(oldo,o,'O');
+ return o;
+ }
#else
op_free(o);
return newUNOP(type, 0, scalar(argop));