Meta/Make: retire old-style-def hack and add strict-proto
Junio C Hamano committed
Nov 11, 2014 at 15:02 UTC
147e9f8e6dfadc555e2416b39deedb2a32977253
1 file changed
+2
-11
Make
+2
-11
@@ -26,7 +26,6 @@ inst_prefix=$(
26
)
27
28
LANG=C
29
-old_style_def_fix=b79d18c92d9f4841a6a1a29b7b2373a8ff9871e1
29
30
: ${O=-O2}
31
@@ -78,15 +77,6 @@ SunOS)
77
;;
78
esac
79
81
-old_style_def_fix () {
82
- rev=$($GIT rev-parse HEAD 2>/dev/null) &&
83
- case "$($GIT merge-base "$old_style_def_fix" "$rev")" in
84
- $old_style_def_fix)
85
- printf "%s\n" "-Wold-style-definition"
86
- ;;
87
- esac
88
-}
89
-
80
determine_branch () {
81
expr "$($GIT symbolic-ref HEAD 2>/dev/null)" : 'refs/heads/\(.*\)' ||
82
echo detached
@@ -113,9 +103,10 @@ do
103
case "$NO_PEDANTIC" in
104
?*) ;;
105
'')
116
- O="-Werror $(old_style_def_fix) -std=c99 $O"
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