This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Warn about bogus conditional operators
> I'll propose something along the lines of:
>
> > + warning (OPT_Wparentheses,
> > + "the omitted middle operand in ?: will always be %<true%>, suggest explicit middle operand");
Makes sense.
>
> I also think that having a new option for this warning is too much.
> This can be included in Wparentheses or another option.
Ok i can put it into Wparenthesis
Thanks for the review.
-Andi
--
ak@linux.intel.com -- Speaking for myself only.