[Mesa-dev] [PATCH 07/11] Clang should warn only about unused CFLAGS and CXXFLAGS on debug builds.

Johannes Obermayr johannesobermayr at gmx.de
Fri Jan 11 18:23:30 PST 2013


---
 configure.ac |    6 ++++++
 1 Datei geändert, 6 Zeilen hinzugefügt(+)

diff --git a/configure.ac b/configure.ac
index 5bbcf05..3893570 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1994,6 +1994,12 @@ dnl Restore LDFLAGS and CPPFLAGS
 LDFLAGS="$_SAVE_LDFLAGS"
 CPPFLAGS="$_SAVE_CPPFLAGS"
 
+dnl Clang should warn only about unused CFLAGS and CXXFLAGS on debug builds
+if test "x$acv_mesa_CLANG" = xyes && test "x$enable_debug" = xno; then
+    CFLAGS="$CFLAGS -Qunused-arguments"
+    CXXFLAGS="$CXXFLAGS -Qunused-arguments"
+fi
+
 dnl Add user CFLAGS and CXXFLAGS
 cflags="$CFLAGS"
 cxxflags="$CXXFLAGS"
-- 
1.7.10.4



More information about the mesa-dev mailing list