[Mesa-dev] [PATCH] i965: Use a ZERO() macro to initialize GENX_* structs.
Emil Velikov
emil.l.velikov at gmail.com
Fri Jul 14 20:58:52 UTC 2017
On 14 July 2017 at 20:13, Matt Turner <mattst88 at gmail.com> wrote:
> On Fri, Jul 14, 2017 at 11:15 AM, Rafael Antognolli
> <rafael.antognolli at intel.com> wrote:
>> gen4 have commands which start with KernelStartPointer, which is a
>> struct, so if we initialize it struct = { 0 }, we get warnings on some
>> compilers.
>
> Which compilers?
>
GCC (pre 4.9?) can throw a Wmissing-braces on[1] while clang
Wmissing-field-initializers [2].
Clang should also be fixed, despite that the bugreport is still open.
-Emil
[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53119
[2] https://bugs.llvm.org/show_bug.cgi?id=21689
More information about the mesa-dev
mailing list