configure: Fail on missing prototypes in check_oc.
authorThilo Borgmann <thilo.borgmann@mail.de>
Wed, 9 Apr 2014 09:18:14 +0000 (11:18 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 9 Apr 2014 11:30:40 +0000 (13:30 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
configure

index 1a4bf40..507a0e9 100755 (executable)
--- a/configure
+++ b/configure
@@ -807,7 +807,7 @@ check_oc(){
     log check_oc "$@"
     cat > $TMPM
     log_file $TMPM
-    check_cmd $cc $CPPFLAGS $CFLAGS "$@" $CC_C $(cc_o $TMPO) $TMPM
+    check_cmd $cc -Werror=missing-prototypes $CPPFLAGS $CFLAGS "$@" $CC_C $(cc_o $TMPO) $TMPM
 }
 
 check_cpp(){