OSDN Git Service

configure: Check for -Werror parameters on clang
authorMartin Storsjö <martin@martin.st>
Tue, 13 Nov 2012 17:01:51 +0000 (19:01 +0200)
committerMartin Storsjö <martin@martin.st>
Thu, 15 Nov 2012 16:22:03 +0000 (18:22 +0200)
Signed-off-by: Martin Storsjö <martin@martin.st>
configure

index 261b0ac..14a887e 100755 (executable)
--- a/configure
+++ b/configure
@@ -3549,6 +3549,8 @@ elif enabled llvm_gcc; then
 elif enabled clang; then
     check_cflags -mllvm -stack-alignment=16
     check_cflags -Qunused-arguments
+    check_cflags -Werror=implicit-function-declaration
+    check_cflags -Werror=missing-prototypes
 elif enabled armcc; then
     # 2523: use of inline assembler is deprecated
     add_cflags -W${armcc_opt},--diag_suppress=2523