The warning can be fixed by using {{0}}. Either way:
Reviewed-by: Marek Olšák
Marek
On Mon, Oct 24, 2016 at 10:45 PM, Brian Paul wrote:
> Unfortunately, this fix causes a warning with some versions of gcc
> (such as 4.9.3):
>
> tgsi/tgsi_scan.c: In function 'scan_instruction':
> tgsi/tgsi_scan
Unfortunately, this fix causes a warning with some versions of gcc
(such as 4.9.3):
tgsi/tgsi_scan.c: In function 'scan_instruction':
tgsi/tgsi_scan.c:373:17: warning: missing braces around initializer
[-Wmissing-braces]
struct tgsi_full_src_register src = {0};
^
tgsi/t