diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2016-07-30 08:54:26 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2016-07-30 09:16:58 -0400 |
commit | 863ca36a1db803bdd82e88ef0e862696379ba681 (patch) | |
tree | 0248f1cf77688d3e83fd32b1edddad56e7ebe84a /cflags.SH | |
parent | 83a46a6345f3963d6be04b9113be147a41e2d5bd (diff) | |
download | perl-863ca36a1db803bdd82e88ef0e862696379ba681.tar.gz |
Pull in unnecessarily duplicated case "$opt".
Diffstat (limited to 'cflags.SH')
-rwxr-xr-x | cflags.SH | 42 |
1 files changed, 20 insertions, 22 deletions
@@ -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 ;; |