configure: special case flag test for clang
(while still abusing the gcc targets) Change-Id: I40f33f619ed1ee760caf23f5598587b30cf8a9ed
This commit is contained in:
parent
15879fb457
commit
dfa2fb5230
5
configure
vendored
5
configure
vendored
@ -601,7 +601,10 @@ process_toolchain() {
|
||||
check_add_cflags -Wimplicit-function-declaration
|
||||
check_add_cflags -Wuninitialized
|
||||
check_add_cflags -Wunused-variable
|
||||
check_add_cflags -Wunused-but-set-variable
|
||||
case ${CC} in
|
||||
*clang*) ;;
|
||||
*) check_add_cflags -Wunused-but-set-variable ;;
|
||||
esac
|
||||
enabled extra_warnings || check_add_cflags -Wno-unused-function
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user