This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] add __attribute__ ((designated_init))
- From: Tom Tromey <tromey at redhat dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 24 Jan 2014 16:01:45 -0700
- Subject: Re: [PATCH] add __attribute__ ((designated_init))
- Authentication-results: sourceware.org; auth=none
- References: <874n4ygzay dot fsf at fleche dot redhat dot com> <Pine dot LNX dot 4 dot 64 dot 1401231756090 dot 31884 at digraph dot polyomino dot org dot uk> <87r47y1bta dot fsf at fleche dot redhat dot com> <Pine dot LNX dot 4 dot 64 dot 1401241702450 dot 9799 at digraph dot polyomino dot org dot uk>
Joseph> Is there a reason someone using the attribute might not want the
Joseph> warning? That is, why isn't -Wdesignated-init enabled by
Joseph> default, given that it's only relevant to people using an
Joseph> attribute whose sole function relates to the warning?
In making this change, I also removed the new option from -Wall.
It seemed like that would be the best approach; but I thought I'd note
it just to be sure.
Tom