This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Wfutile-unsigned-comparison (PR7651 Define -Wextra strictly in terms of other warning flags)
On 24 Dec 2006 16:37:02 +0100, Gabriel Dos Reis
<gdr@integrable-solutions.net> wrote:
"Manuel LÃpez-IbÃÃez" <lopezibanez@gmail.com> writes:
| :ADDPATCH middle-end:
|
| This patch continues the effort to fix PR7651 [1].
|
| It adds a new option -Wfutile-unsigned-comparison that takes over the
I don't think the adjunctive "futile" is appropriate.
Suggestions? useless and pointless sound worse to me but perhaps they
seem fine to a native speaker.
I think there is a switch for comparisons that are always true
because of type range limits. I suspect this particular diagnostic
falls under that umbrella.
I wasn't able to find it and there are no so many -W* options in
doc/invoke.texi. So please, point me to it and I will happily resubmit
the patch. However, that would break current behaviour since that
warning that you mention is not enabled by Wextra, so then what you
propose to do? Enable it with Wextra or remove this warning from
Wextra?
Cheers,
Manuel.