This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C/C++ PATCH to add -Wdangling-else option
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Marek Polacek <polacek at redhat dot com>
- Cc: Bernd Schmidt <bschmidt at redhat dot com>, Jakub Jelinek <jakub at redhat dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 4 May 2016 15:39:19 +0000
- Subject: Re: C/C++ PATCH to add -Wdangling-else option
- Authentication-results: sourceware.org; auth=none
- References: <20160413141444 dot GT28445 at redhat dot com> <570E6218 dot 6020503 at redhat dot com> <20160413151612 dot GS19207 at tucnak dot redhat dot com> <20160426123201 dot GG28445 at redhat dot com> <20160426123924 dot GT26501 at tucnak dot zalov dot cz> <571F671D dot 1010701 at redhat dot com> <20160504131913 dot GK5348 at redhat dot com>
On Wed, 4 May 2016, Marek Polacek wrote:
> On Tue, Apr 26, 2016 at 03:03:25PM +0200, Bernd Schmidt wrote:
> > On 04/26/2016 02:39 PM, Jakub Jelinek wrote:
> > > I support that change, and -Wparentheses will still enable this, it just
> > > gives more fine-grained control and be in line with what clang does.
> > >
> > > Bernd, how much are you against this change?
> >
> > Don't really care that much, I just don't quite see the point. Don't let me
> > stop you though.
>
> So Joseph, what do you think about this patch? :)
I support adding the option for more fine-grained control of these
warnings.
--
Joseph S. Myers
joseph@codesourcery.com