[Mesa-dev] [PATCH 01/24] configure.ac: Add CFLAG -Wno-missing-field-initializers (v2)

Emil Velikov emil.l.velikov at gmail.com
Fri Jun 8 15:28:55 UTC 2018


On 8 June 2018 at 12:02, Gert Wollny <gw.fossdev at gmail.com> wrote:
> From: Gert Wollny <gert.wollny at collabora.com>
>
> This warning is misleading: When a struct is partially initialized without
> assigning to the struture members by name, then the un-initialized fields
> will be zeroed out, and this warning will be issued (if enabled). If, on the
> other hand, the partial initialization is done by assigning to named members,
> the remaining structure elements may hold random data, but the warning is not
> issued. Since in Mesa the first approach to initialize structure elements is
> used very often, and it is usually assumed that the remaining elements are
> zeroed out, so heeding this warning would be counter-productive.
>
> v2: - add -Wno-missing-field-initializers to meson-build
>     - fix empty line error
>     (both Eric Engestrom)
>
> Reviewed-by: Marek Olšák <marek.olsak at amd.com> (v1)
> Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
> ---
> resent to attach it to the proper thread in patchwork
>
Out of curiosity: how many warnings are we walking about - is it
something like 20-50 or it's in the 100+ region?

There's a small comment on 24/24, with that the series is
Reviewed-by: Emil Velikov <emil.velikov at collabora.com>

Please do not resent the whole series because if you agree with the
24/24 comment.

You've been around for a while and have ~70 patches merged. Might be
good idea to apply for commit access.

https://www.freedesktop.org/wiki/AccountRequests/
https://bugs.freedesktop.org/show_bug.cgi?id=99601

HTH
Emil


More information about the mesa-dev mailing list