summaryrefslogtreecommitdiff
path: root/cflags.SH
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2016-07-30 08:54:26 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2016-07-30 09:16:58 -0400
commit863ca36a1db803bdd82e88ef0e862696379ba681 (patch)
tree0248f1cf77688d3e83fd32b1edddad56e7ebe84a /cflags.SH
parent83a46a6345f3963d6be04b9113be147a41e2d5bd (diff)
downloadperl-863ca36a1db803bdd82e88ef0e862696379ba681.tar.gz
Pull in unnecessarily duplicated case "$opt".
Diffstat (limited to 'cflags.SH')
-rwxr-xr-xcflags.SH42
1 files changed, 20 insertions, 22 deletions
diff --git a/cflags.SH b/cflags.SH
index a50044eb9a..bd32840407 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
;;