Skip to content

Commit

Permalink
Suppress "-Wimplicit-fallthrough" warning
Browse files Browse the repository at this point in the history
Observed when running make with g++-8 as C compiler.
  • Loading branch information
jkeenan committed Oct 10, 2018
1 parent 51684e3 commit 8cecfd7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions cpan/Scalar-List-Utils/ListUtil.xs
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ CODE:
/* fallthrough to NV now */
retnv = retiv;
accum = ACC_NV;
__attribute__ ((fallthrough));
case ACC_NV:
is_product ? (retnv *= slu_sv_value(sv))
: (retnv += slu_sv_value(sv));
Expand Down
2 changes: 1 addition & 1 deletion cpan/Scalar-List-Utils/lib/List/Util.pm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ our @EXPORT_OK = qw(
all any first min max minstr maxstr none notall product reduce sum sum0 shuffle uniq uniqnum uniqstr
head tail pairs unpairs pairkeys pairvalues pairmap pairgrep pairfirst
);
our $VERSION = "1.50";
our $VERSION = "1.51";
our $XS_VERSION = $VERSION;
$VERSION = eval $VERSION;

Expand Down
2 changes: 1 addition & 1 deletion cpan/Scalar-List-Utils/lib/List/Util/XS.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use strict;
use warnings;
use List::Util;

our $VERSION = "1.50"; # FIXUP
our $VERSION = "1.51"; # FIXUP
$VERSION = eval $VERSION; # FIXUP

1;
Expand Down
2 changes: 1 addition & 1 deletion cpan/Scalar-List-Utils/lib/Scalar/Util.pm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ our @EXPORT_OK = qw(
dualvar isdual isvstring looks_like_number openhandle readonly set_prototype
tainted
);
our $VERSION = "1.50";
our $VERSION = "1.51";
$VERSION = eval $VERSION;

require List::Util; # List::Util loads the XS
Expand Down
2 changes: 1 addition & 1 deletion cpan/Scalar-List-Utils/lib/Sub/Util.pm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ our @EXPORT_OK = qw(
subname set_subname
);

our $VERSION = "1.50";
our $VERSION = "1.51";
$VERSION = eval $VERSION;

require List::Util; # as it has the XS
Expand Down

0 comments on commit 8cecfd7

Please sign in to comment.