[igt-dev] [PATCH i-g-t] tests/kms_vrr: fix compilation with Clang

Petri Latvala petri.latvala at intel.com
Tue Apr 16 10:27:51 UTC 2019


On Thu, Mar 21, 2019 at 09:37:45AM +0200, Simon Ser wrote:
> Clang fails to compile this file with this error:
> 
>     ../tests/kms_vrr.c:203:20: error: suggest braces around
> initialization of subobject [-Werror,-Wmissing-braces]
>             drmVBlank vbl = { 0 };
>                               ^
>                               {}
> 
> As discussed in [1], using an empty initializer list is the preferred
> way to fix this.
> 
> [1]: https://lists.freedesktop.org/archives/igt-dev/2019-March/010841.html
> 
> Signed-off-by: Simon Ser <simon.ser at intel.com>


Reviewed-by: Petri Latvala <petri.latvala at intel.com>


More information about the igt-dev mailing list