Skip to content

Commit

Permalink
Fix compiler warning about empty if body
Browse files Browse the repository at this point in the history
This is meant to correct the following 'blead' build warning:

op.c: In function 'Perl_op_free':
op.c:713:30: warning: suggest braces around empty body in an 'if' statement
  • Loading branch information
jdhedden authored and Father Chrysostomos committed Sep 4, 2012
1 parent 39234ce commit 9bcdb3d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions op.c
Expand Up @@ -709,8 +709,9 @@ Perl_op_free(pTHX_ OP *o)
if (type == OP_NULL)
type = (OPCODE)o->op_targ;

if (o->op_slabbed)
Slab_to_rw(OpSLAB(o));
if (o->op_slabbed) {
Slab_to_rw(OpSLAB(o));
}

/* COP* is not cleared by op_clear() so that we may track line
* numbers etc even after null() */
Expand Down

0 comments on commit 9bcdb3d

Please sign in to comment.