meson: Disable bison's -Wdeprecated since we still support old bison.
authorEric Anholt <eric@anholt.net>
Wed, 19 Feb 2020 00:03:19 +0000 (16:03 -0800)
committerMarge Bot <eric+marge@anholt.net>
Tue, 25 Feb 2020 21:45:06 +0000 (21:45 +0000)
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>

meson.build

index 73ba1b2425396690634dfd280b076b9dba36a611..d69b17bb1579962f3e92f8335f1494df6a8779a7 100644 (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