ref: 4b8f7a67e5d7526dbbc6870f30949b354da0bc87
parent: 3fa5b39d6f521291cd24d684f1f1a15edc154989
parent: dfa2fb5230deab0389d3346b00c9aee498ac97df
author: James Zern <[email protected]>
date: Fri May 3 12:28:27 EDT 2013
Merge "configure: special case flag test for clang" into experimental
--- a/configure
+++ b/configure
@@ -601,7 +601,10 @@
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