This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/61489] Wrong warning with -Wmissing-field-initializers.


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

--- Comment #5 from Deniz Bahadir <D.Bahadir at GMX dot de> ---
Thanks again.
Then I need to appologize for misunderstanding the meaning of the warning-flag.

Because of several internet-sources, like the one I cited, I always thought
that the cases of addr3 and addr7 were the prefered way of explicitely forcing
zero-initialization of all struct members (especially if the number of
struct-members are subject to change in the future).

If I understand you correctly, a better/cleaner way which achieves the exact
same is using the cases of addr2 and addr6.

Then I would rephrase my original statement and suggest that no warning will be
issued for cases of addr2, addr6 and addr9.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]