Meta/Make: make it strict by default

Junio C Hamano committed Feb 5, 2015 at 14:18 UTC d1eae6908f5327c4c1a607cab1c449e71a08c7d7
2 files changed +16 -15
Dothem
+3 -2
@@ -31,6 +31,7 @@ while case "$1" in
31 --base=*) BUILDBASE=${1#*=} ;;
32 --branches=*) branches=${1#*=} ;;
33 -j*) jobs=$1 ;;
34 + --) shift; break ;;
35 -*) echo >&2 "Unknown option: $1"; exit 1 ;;
36 *) break ;;
37 esac
@@ -195,7 +196,7 @@ do
196
197 save=$(git rev-parse HEAD) &&
198
198 - Meta/Make $M ${test+"$test"} $jobs -- ${with_dash:+SHELL_PATH=/bin/dash} $dotest &&
199 + Meta/Make $M ${test+"$test"} $jobs -- ${with_dash:+SHELL_PATH=/bin/dash} "$@" $dotest &&
200
201 {
202 test -n "$skip_doc" ||
@@ -212,7 +213,7 @@ do
213 test z$install = znoinstall ||
214 if test "$save" = "$(git rev-parse HEAD)"
215 then
215 - Meta/Make $M -- ${with_dash:+SHELL_PATH=/bin/dash} install
216 + Meta/Make $M -- ${with_dash:+SHELL_PATH=/bin/dash} "$@" install
217 else
218 echo >&2 "Head moved--not installing"
219 fi
Make
+13 -13
@@ -96,21 +96,20 @@ determine_long_version () {
96 sed -e 's/-/./g'
97 }
98
99 +case "$NO_PEDANTIC" in
100 +?*) ;;
101 +'')
102 + PEDANT="-Werror -Wold-style-definition -std=c99 $PEDANT"
103 + PEDANT="-Wpointer-arith -Woverflow -Wunused $PEDANT"
104 + PEDANT="-Wold-style-declaration -Wstrict-prototypes $PEDANT"
105 + ;;
106 +esac
107 +
108 while case $# in 0) break ;; esac
109 do
110 case "$1" in
102 - -pedantic | --pedantic)
103 - case "$NO_PEDANTIC" in
104 - ?*) ;;
105 - '')
106 - O="-Werror -Wold-style-definition -std=c99 $O"
107 - O="-Wno-pointer-to-int-cast $O"
108 - O="-Wpointer-arith -Woverflow -Wunused $O"
109 - O="-Wold-style-declaration -Wstrict-prototypes $O"
110 - ;;
111 - esac
112 - # -Wvla
113 - # O="$O -fwrapv -fno-strict-overflow"
111 + --pedantic)
112 + echo >&2 "(no need to say --pedantic)"
113 ;;
114 -j*)
115 case "$NO_JOBS" in
@@ -122,7 +121,7 @@ do
121 oldtest=t
122 ;;
123 -loose | --loose)
125 - Wall=
124 + PEDANT= Wall=
125 ;;
126 --locale=*)
127 LANG=${1#*=}
@@ -153,6 +152,7 @@ do
152 esac
153 shift
154 done
155 +O="${PEDANT}${PEDANT:+ }$O"
156
157 test -f /bin/dash || with_dash=
158