[Bug c/95379] Don't warn about the universal zero initializer for a structure with the 'designated_init' attribute.

luc.vanoostenryck at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu May 28 21:02:31 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95379

--- Comment #11 from Luc Van Oostenryck <luc.vanoostenryck at gmail dot com> ---
(In reply to Andrew Pinski from comment #10)
> GCC uses -Wno-designated-init to disable the warning (this option has been
> there included for a while)?  Do you think sparse could add/use the same
> option?

Sparse already has this option. Also, I don't think it would help here since
from I understand the OP want these warnings but not if they're caused by using
'{ 0 }'.


More information about the Gcc-bugs mailing list