Re: [PATCH v2] drm/amd/display: Initialize stream_update with memset

2019-04-09 Thread Li, Sun peng (Leo)
On 2019-03-22 9:59 a.m., Nicholas Kazlauskas wrote: > The brace initialization used here generates warnings on some > compilers. For example, on GCC 4.9: > > [...] In function ‘dm_determine_update_type_for_commit’: > [...] error: missing braces around initializer [-Werror=missing-braces] >

[PATCH v2] drm/amd/display: Initialize stream_update with memset

2019-03-22 Thread Nicholas Kazlauskas
The brace initialization used here generates warnings on some compilers. For example, on GCC 4.9: [...] In function ‘dm_determine_update_type_for_commit’: [...] error: missing braces around initializer [-Werror=missing-braces] struct dc_stream_update stream_update = { 0 }; ^ Use