projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39234ce
)
Fix compiler warning about empty if body
author
Jerry D. Hedden
<jdhedden@cpan.org>
Tue, 4 Sep 2012 17:19:26 +0000
(13:19 -0400)
committer
Father Chrysostomos
<sprout@cpan.org>
Tue, 4 Sep 2012 19:35:49 +0000
(12:35 -0700)
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
op.c
patch
|
blob
|
history
diff --git
a/op.c
b/op.c
index
cdfd7e4
..
9e176ad
100644
(file)
--- a/
op.c
+++ b/
op.c
@@
-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() */