@@ -6731,9 +6731,6 @@ if test "${OPT-unset}" = "unset" |
|
|
6731 |
6731 |
then |
6732 |
6732 |
case $GCC in |
6733 |
6733 |
yes) |
6734 |
|
-if test "$CC" != 'g++' ; then |
6735 |
|
- STRICT_PROTO="-Wstrict-prototypes" |
6736 |
|
-fi |
6737 |
6734 |
# For gcc 4.x we need to use -fwrapv so lets check if its supported |
6738 |
6735 |
if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then |
6739 |
6736 |
WRAP="-fwrapv" |
@@ -6780,8 +6777,6 @@ then |
|
|
6780 |
6777 |
;; |
6781 |
6778 |
esac |
6782 |
6779 |
|
6783 |
|
- OPT="$OPT $STRICT_PROTO" |
6784 |
|
- |
6785 |
6780 |
case $ac_sys_system in |
6786 |
6781 |
SCO_SV*) OPT="$OPT -m486 -DSCO5" |
6787 |
6782 |
;; |
@@ -7190,6 +7185,47 @@ fi |
|
|
7190 |
7185 |
{ asecho"as_echo "asecho"as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5 |
7191 |
7186 |
asecho"as_echo "asecho"ac_cv_enable_unreachable_code_warning" >&6; } |
7192 |
7187 |
|
|
7188 |
+ { asecho"as_echo "asecho"as_me:${as_lineno-$LINENO}: checking if we can turn on $CC strict-prototypes warning" >&5 |
|
7189 |
+$as_echo_n "checking if we can turn on $CC strict-prototypes warning... " >&6; } |
|
7190 |
+ ac_save_cc="$CC" |
|
7191 |
+ CC="$CC -Werror -Wstrict-prototypes" |
|
7192 |
+if ${ac_cv_enable_enable_strict_prototypes_warning+:} false; then : |
|
7193 |
+$as_echo_n "(cached) " >&6 |
|
7194 |
+else |
|
7195 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
7196 |
+/* end confdefs.h. */ |
|
7197 |
+ |
|
7198 |
+ |
|
7199 |
+int |
|
7200 |
+main () |
|
7201 |
+{ |
|
7202 |
+ |
|
7203 |
+ ; |
|
7204 |
+ return 0; |
|
7205 |
+} |
|
7206 |
+ |
|
7207 |
+_ACEOF |
|
7208 |
+if ac_fn_c_try_compile "$LINENO"; then : |
|
7209 |
+ |
|
7210 |
+ ac_cv_enable_strict_prototypes_warning=yes |
|
7211 |
+ |
|
7212 |
+else |
|
7213 |
+ |
|
7214 |
+ ac_cv_enable_strict_prototypes_warning=no |
|
7215 |
+ |
|
7216 |
+fi |
|
7217 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
7218 |
+fi |
|
7219 |
+ |
|
7220 |
+ CC="$ac_save_cc" |
|
7221 |
+ { asecho"as_echo "asecho"as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_strict_prototypes_warning" >&5 |
|
7222 |
+$as_echo "$ac_cv_enable_strict_prototypes_warning" >&6; } |
|
7223 |
+ |
|
7224 |
+if test $ac_cv_enable_strict_prototypes_warning = yes |
|
7225 |
+then |
|
7226 |
+ CFLAGS_NODIST="$CFLAGS_NODIST -Wstrict-prototypes" |
|
7227 |
+fi |
|
7228 |
+ |
7193 |
7229 |
{ asecho"as_echo "asecho"as_me:${as_lineno-$LINENO}: checking if we can make implicit function declaration an error in $CC" >&5 |
7194 |
7230 |
asechon"checkingifwecanmakeimplicitfunctiondeclarationanerrorinas_echo_n "checking if we can make implicit function declaration an error in asechon"checkingifwecanmakeimplicitfunctiondeclarationanerrorinCC... " >&6; } |
7195 |
7231 |
ac_save_cc="$CC" |