mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-29 04:10:53 +02:00
Suppress clang's warnings about unused CFLAGS and CXXFLAGS.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
8bbcc43ad9
commit
6016dabfa2
1 changed files with 6 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue