meson: Disable bison's -Wdeprecated since we still support old bison.

We can't stop using deprecated keywords because we maintain support for
ancient bison.  Silence the warning so that builds are less noisy.

Acked-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3868>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3868>
This commit is contained in:
Eric Anholt 2020-02-18 16:03:19 -08:00 committed by Marge Bot
parent 5dfd83d7a1
commit 11a1cb2fa8
1 changed files with 6 additions and 0 deletions

View File

@ -1508,6 +1508,12 @@ if host_machine.system() == 'windows'
endif
else
prog_bison = find_program('bison', required : with_any_opengl)
# Disable deprecated keyword warnings, since we have to use them for
# old-bison compat. See discussion in
# https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2161
prog_bison = [prog_bison, '-Wno-deprecated']
prog_flex = find_program('flex', required : with_any_opengl)
endif