[Mesa-dev] [PATCH 4/7] egl/surfaceless: tweak surfaceless_add_configs_for_visuals()

Eric Engestrom eric at engestrom.ch
Thu Aug 25 21:46:01 UTC 2016


On Thu, Aug 25, 2016 at 10:53:22AM -0700, Gurchetan Singh wrote:
> >> unsigned int format_count[ARRAY_SIZE(visuals)] = {};
> 
> Isn't this invalid in C?
> http://stackoverflow.com/questions/17589533/is-an-empty-initializer-list-valid-c-code

Agreed, that should probably be `{0}`

I'll wait for v2 to r-b the whole series, though ;)

Cheers,
  Eric


More information about the mesa-dev mailing list