In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/863ca36a1db803bdd82e88ef0e862696379ba681?hp=83a46a6345f3963d6be04b9113be147a41e2d5bd>
- Log ----------------------------------------------------------------- commit 863ca36a1db803bdd82e88ef0e862696379ba681 Author: Jarkko Hietaniemi <j...@iki.fi> Date: Sat Jul 30 08:54:26 2016 -0400 Pull in unnecessarily duplicated case "$opt". ----------------------------------------------------------------------- Summary of changes: cflags.SH | 42 ++++++++++++++++++++---------------------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/cflags.SH b/cflags.SH index a50044e..bd32840 100755 --- a/cflags.SH +++ b/cflags.SH @@ -226,33 +226,31 @@ Intel*) ;; # # Is that you, Intel C++? ;; esac ;; - *) case "$opt" in - -W) - # -Wextra is the modern form of -W, so add - # -W only if -Wextra is not there already. - case " $warn " in - *-Wextra*) ;; - *) - echo "cflags.SH: Adding $opt." - warn="$warn $opt" - ;; - esac - ;; - -Werror=declaration-after-statement) - # -pedantic* (with -std=c89) covers -Werror=d-a-s. - case "$stdflags$warn" in - *-std=c89*-pedantic*|*-pedantic*-std=c89*) ;; - *) - echo "cflags.SH: Adding $opt." - warn="$warn $opt" - ;; - esac - ;; + -W) + # -Wextra is the modern form of -W, so add + # -W only if -Wextra is not there already. + case " $warn " in + *-Wextra*) ;; + *) + echo "cflags.SH: Adding $opt." + warn="$warn $opt" + ;; + esac + ;; + -Werror=declaration-after-statement) + # -pedantic* (with -std=c89) covers -Werror=d-a-s. + case "$stdflags$warn" in + *-std=c89*-pedantic*|*-pedantic*-std=c89*) ;; *) echo "cflags.SH: Adding $opt." warn="$warn $opt" ;; esac + ;; + *) + echo "cflags.SH: Adding $opt." + warn="$warn $opt" + ;; esac fi ;; -- Perl5 Master Repository