This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fa9f95
)
Two break; statements that aren't (yet) needed, but may trip someone up
author
Nicholas Clark
<nick@ccl4.org>
Mon, 25 Feb 2008 11:47:03 +0000
(11:47 +0000)
committer
Nicholas Clark
<nick@ccl4.org>
Mon, 25 Feb 2008 11:47:03 +0000
(11:47 +0000)
in the future.
p4raw-id: //depot/perl@33368
op.c
patch
|
blob
|
blame
|
history
diff --git
a/op.c
b/op.c
index
0e78eb1
..
71ee848
100644
(file)
--- a/
op.c
+++ b/
op.c
@@
-911,6
+911,7
@@
Perl_scalar(pTHX_ OP *o)
case OP_SORT:
if (ckWARN(WARN_VOID))
Perl_warner(aTHX_ packWARN(WARN_VOID), "Useless use of sort in scalar context");
+ break;
}
return o;
}
@@
-2465,6
+2466,7
@@
Perl_fold_constants(pTHX_ register OP *o)
/* XXX what about the numeric ops? */
if (PL_hints & HINT_LOCALE)
goto nope;
+ break;
}
if (PL_parser && PL_parser->error_count)