This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Annotate intentional case fallthrough, or add breaks.
authorJarkko Hietaniemi <jhi@iki.fi>
Sun, 4 May 2014 23:44:24 +0000 (19:44 -0400)
committerSteffen Mueller <smueller@cpan.org>
Wed, 28 May 2014 17:27:22 +0000 (19:27 +0200)
commitc67159e16ee2c8d23fc3c3a55448ffbda709b3f6
treee490fd9d5327e9f7519b1a0d3578baff4d241600
parenta482c76f48270e80f77784f6a08d244af9b26d7e
Annotate intentional case fallthrough, or add breaks.

Fix suspicious (*) switch cases found by Coverity by
annotating with either "/* FALLTHROUGH */" or adding a break;

The FALLTHROUGH was much more common, but the break turned
out to be the right choice in three spots.  All changes tested
to work.

(*) suspicious = case1 + code + case2, and neither flow control
(like break) nor fallthrough annotation between code and case2.

Fix for Coverity perl5 CIDs 28977..28989, 45353.
dist/Data-Dumper/Dumper.pm
dist/Data-Dumper/Dumper.xs
gv.c
op.c
pp_ctl.c
regcomp.c
toke.c