Mesa (master): Suppress clang's warnings about unused CFLAGS and CXXFLAGS.
Eric Anholt
anholt at kemper.freedesktop.org
Sun Sep 22 20:43:31 UTC 2013
Module: Mesa
Branch: master
Commit: 6016dabfa24271af28bd2a5525476060c1efe1c3
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6016dabfa24271af28bd2a5525476060c1efe1c3
Author: Johannes Obermayr <johannesobermayr at gmx.de>
Date: Thu Sep 12 00:32:40 2013 +0200
Suppress clang's warnings about unused CFLAGS and CXXFLAGS.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Eric Anholt <eric at anholt.net>
---
configure.ac | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index ca9228c..d280e38 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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"
More information about the mesa-commit
mailing list