[Mesa-dev] [PATCH mesa 5/6] meson: make it trivial to add other -Wno-foo CFLAGS
Dylan Baker
dylan at pnwbakers.com
Mon Sep 24 18:55:12 UTC 2018
Quoting Eric Engestrom (2018-09-21 06:50:40)
> Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
> ---
> meson.build | 9 ++++++---
> 1 file changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/meson.build b/meson.build
> index 7b7bf4d8e609c92bbd06..863962186caa6afe8ae4 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -790,9 +790,12 @@ foreach a : ['-Wall', '-Werror=implicit-function-declaration',
> c_args += a
> endif
> endforeach
> -if cc.has_argument('-Wmissing-field-initializers')
> - c_args += '-Wno-missing-field-initializers'
> -endif
> +
> +foreach a : ['missing-field-initializers']
> + if cc.has_argument('-W' + a)
> + c_args += '-Wno-' + a
> + endif
> +endforeach
>
> c_vis_args = []
> if cc.has_argument('-fvisibility=hidden')
> --
> Cheers,
> Eric
>
I thought I reviewed this patch already,
Reviewed-by: Dylan Baker <dylan at pnwbakers.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180924/ea538d1d/attachment-0001.sig>
More information about the mesa-dev
mailing list