Suppress clang's warnings about unused CFLAGS and CXXFLAGS.
authorJohannes Obermayr <johannesobermayr@gmx.de>
Wed, 11 Sep 2013 22:32:40 +0000 (00:32 +0200)
committerEric Anholt <eric@anholt.net>
Sun, 22 Sep 2013 20:10:43 +0000 (13:10 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
configure.ac

index ca9228cf994123036a02aca2a4824e9550c2567e..d280e389a6275b523529a2943be29dc7846aa0ba 100644 (file)
@@ -1969,6 +1969,12 @@ dnl Restore LDFLAGS and CPPFLAGS
 LDFLAGS="$_SAVE_LDFLAGS"
 CPPFLAGS="$_SAVE_CPPFLAGS"
 
+dnl Suppress clang's warnings about unused CFLAGS and CXXFLAGS
+if test "x$acv_mesa_CLANG" = xyes; then
+    CFLAGS="$CFLAGS -Qunused-arguments"
+    CXXFLAGS="$CXXFLAGS -Qunused-arguments"
+fi
+
 dnl Add user CFLAGS and CXXFLAGS
 CFLAGS="$CFLAGS $USER_CFLAGS"
 CXXFLAGS="$CXXFLAGS $USER_CXXFLAGS"