Tautological comparison in gcc 6.1.1
Andrew Bartlett
abartlet at samba.org
Wed Jul 13 10:08:08 UTC 2016
On Wed, 2016-07-13 at 21:57 +1200, Andrew Bartlett wrote:
> On Wed, 2016-07-13 at 14:21 +1000, Amitay Isaacs wrote:
>
> > Reviewed-by: me.
> >
> > Let's wait and see if anyone has a better idea.
> >
> > Amitay.
>
> Build some files with -Wno-tautological-compare?
>
> The problem with the solutions I've seen proposed is that they just
> wait for the compiler to get smarter, or the -O level to be raised,
> and
> then we are back where we started. It also makes elegant code less
> -elegant.
>
> I know there are advantages to finding these things elsewhere, but it
> frustrates me when changes like this are need (mostly the follow-up
> patches, if we just had to change the inside of the macros I wouldn't
> mind so much).
Relevant links:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54979
https://gcc.gnu.org/wiki/FAQ#The_warning_.22unrecognized_command-line_option.22_is_not_given_for_-Wno-foo
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62095
(to save others time). I don't know if this is any more practical however.
Andrew Bartlett
--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba
More information about the samba-technical
mailing list