[igt-dev] [PATCH v2] tests: use an empty brace initializer
Petri Latvala
petri.latvala at intel.com
Thu Aug 6 08:43:50 UTC 2020
On Fri, Jul 24, 2020 at 10:08:22AM +0300, Petri Latvala wrote:
> On Thu, Jul 23, 2020 at 04:54:58PM -0700, Carlos Santa wrote:
> > In some sandboxes the toolchain complains about missing
> > braces around initializer, however, using an empty
> > initializer is enough to shut out the compiler.
> >
> > ../tests/kms_plane_cursor.c: In function '__real_main_302':
> > ../tests/kms_plane_cursor.c:305:2 error: missing braces around
> > initializer [-Werror=missing-braces]
> > data_t data = { 0 };
> >
> > v2:
> > Use an empty initializer { } instead of { 0 } <Petri, Latvala>
>
> Remove the comma, I'm "Petri Latvala" :)
>
>
> Reviewed-by: Petri Latvala <petri.latvala at intel.com>
And after a momentary brain failure, this is now also merged.
--
Petri Latvala
More information about the igt-dev
mailing list