Mesa (master): meson: Disable bison's -Wdeprecated since we still support old bison.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Feb 25 22:09:24 UTC 2020
Module: Mesa
Branch: master
Commit: 11a1cb2fa8dadca9d918e8421a3b26a1b176937c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=11a1cb2fa8dadca9d918e8421a3b26a1b176937c
Author: Eric Anholt <eric at anholt.net>
Date: Tue Feb 18 16:03:19 2020 -0800
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 at itsqueeze.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund at 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>
---
meson.build | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/meson.build b/meson.build
index 73ba1b24253..d69b17bb157 100644
--- a/meson.build
+++ b/meson.build
@@ -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
More information about the mesa-commit
mailing list