configure: Check for -Werror parameters on clang

Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit 9eded0fe41)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
Martin Storsjö 2012-11-13 19:01:51 +02:00 committed by Luca Barbato
parent 0ab76ddf31
commit c98d164a6a
1 changed files with 2 additions and 0 deletions

2
configure vendored
View File

@ -3141,6 +3141,8 @@ elif enabled llvm_gcc; then
elif enabled clang; then elif enabled clang; then
check_cflags -mllvm -stack-alignment=16 check_cflags -mllvm -stack-alignment=16
check_cflags -Qunused-arguments check_cflags -Qunused-arguments
check_cflags -Werror=implicit-function-declaration
check_cflags -Werror=missing-prototypes
elif enabled armcc; then elif enabled armcc; then
# 2523: use of inline assembler is deprecated # 2523: use of inline assembler is deprecated
add_cflags -W${armcc_opt},--diag_suppress=2523 add_cflags -W${armcc_opt},--diag_suppress=2523