configure: special case flag test for clang
authorJames Zern <jzern@google.com>
Fri, 3 May 2013 21:00:33 +0000 (14:00 -0700)
committerJames Zern <jzern@google.com>
Fri, 3 May 2013 21:01:03 +0000 (14:01 -0700)
(while still abusing the gcc targets)

Change-Id: I40f33f619ed1ee760caf23f5598587b30cf8a9ed

configure

index a799be0..6e60af1 100755 (executable)
--- a/configure
+++ b/configure
@@ -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