[Bug c/53119] -Wmissing-braces wrongly warns about universal zero initializer {0}
bugdal at aerifal dot cx
gcc-bugzilla@gcc.gnu.org
Wed Apr 25 18:32:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53119
--- Comment #4 from Rich Felker <bugdal at aerifal dot cx> 2012-04-25 18:32:08 UTC ---
Created attachment 27242
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27242
minimal test case
Glibc's mbstate_t is defined as a struct whose first element is an int (not
another struct/union/array), so the warning does not happen there. I'm
uploading a minimal example case with an explicitly defined struct.
More information about the Gcc-bugs
mailing list