This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: question regarding new warning
- From: "Thomas Preud'homme" <thomas dot preudhomme at arm dot com>
- To: <gcc at gcc dot gnu dot org>
- Date: Thu, 27 Mar 2014 16:22:36 +0800
- Subject: RE: question regarding new warning
- Authentication-results: sourceware.org; auth=none
- References: <CAF5HaEV2vt=epA4h-rPGDNnXtUFWXhJeqyAF0k06b1Wuoec97g at mail dot gmail dot com> <5333D6F5 dot 5080008 at redhat dot com> <000301cf4993$46465bb0$d2d31310$ at arm dot com> <5333DE35 dot 4070704 at redhat dot com>
> From: Andrew Haley [mailto:aph@redhat.com]
>
> The trouble with warnings like this is that they trigger far too
> frequently on good (i.e. correct, reasonable, just as the programmer
> intended) code. They bring warnings into disrepute. They also cause
> people to do extra work just to shut the compiler up, and this often
> IME leads to inadvertent code breakage.
Sure, I would be again enabling it by default. This means it should *not* be enabled by Wall or even Wextra.
Best regards,
Thomas Preud'homme