From: Johannes Obermayr Date: Wed, 11 Sep 2013 22:32:40 +0000 (+0200) Subject: Suppress clang's warnings about unused CFLAGS and CXXFLAGS. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6016dabfa24271af28bd2a5525476060c1efe1c3;p=mesa.git Suppress clang's warnings about unused CFLAGS and CXXFLAGS. Reviewed-by: Kenneth Graunke Reviewed-by: Eric Anholt --- diff --git a/configure.ac b/configure.ac index ca9228cf994..d280e389a62 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"