@@ -7052,6 +7052,47 @@ asecho"as_echo "asecho"ac_cv_disable_missing_field_initializers" >&6; } |
|
|
7052 |
7052 |
CFLAGS_NODIST="$CFLAGS_NODIST -Wno-missing-field-initializers" |
7053 |
7053 |
fi |
7054 |
7054 |
|
|
7055 |
+ { asecho"as_echo "asecho"as_me:${as_lineno-$LINENO}: checking if we can turn off $CC invalid function cast warning" >&5 |
|
7056 |
+$as_echo_n "checking if we can turn off $CC invalid function cast warning... " >&6; } |
|
7057 |
+ ac_save_cc="$CC" |
|
7058 |
+ CC="$CC -Wcast-function-type -Werror" |
|
7059 |
+if ${ac_cv_disable_cast_function_type+:} false; then : |
|
7060 |
+$as_echo_n "(cached) " >&6 |
|
7061 |
+else |
|
7062 |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
7063 |
+/* end confdefs.h. */ |
|
7064 |
+ |
|
7065 |
+ |
|
7066 |
+int |
|
7067 |
+main () |
|
7068 |
+{ |
|
7069 |
+ |
|
7070 |
+ ; |
|
7071 |
+ return 0; |
|
7072 |
+} |
|
7073 |
+ |
|
7074 |
+_ACEOF |
|
7075 |
+if ac_fn_c_try_compile "$LINENO"; then : |
|
7076 |
+ |
|
7077 |
+ ac_cv_disable_cast_function_type=yes |
|
7078 |
+ |
|
7079 |
+else |
|
7080 |
+ |
|
7081 |
+ ac_cv_disable_cast_function_type=no |
|
7082 |
+ |
|
7083 |
+fi |
|
7084 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
7085 |
+fi |
|
7086 |
+ |
|
7087 |
+ CC="$ac_save_cc" |
|
7088 |
+ { asecho"as_echo "asecho"as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_cast_function_type" >&5 |
|
7089 |
+$as_echo "$ac_cv_disable_cast_function_type" >&6; } |
|
7090 |
+ |
|
7091 |
+if test $ac_cv_disable_cast_function_type = yes |
|
7092 |
+then |
|
7093 |
+ CFLAGS_NODIST="$CFLAGS_NODIST -Wno-cast-function-type" |
|
7094 |
+fi |
|
7095 |
+ |
7055 |
7096 |
{ asecho"as_echo "asecho"as_me:${as_lineno-$LINENO}: checking if we can turn on $CC mixed sign comparison warning" >&5 |
7056 |
7097 |
asechon"checkingifwecanturnonas_echo_n "checking if we can turn on asechon"checkingifwecanturnonCC mixed sign comparison warning... " >&6; } |
7057 |
7098 |
ac_save_cc="$CC" |