On Fri, Sep 9, 2011 at 4:13 PM, Richard Trieu <[email protected]> wrote:
> Add a new warning and bundle it into -Wliteral-conversion.  This
> warning triggers on cases where a string literal is implicitly
> converted to a bool.  For the common case of:
>
> assert(condition && "Error text");
>
> an exception for string literals in logical operations has also been included.
>

Currently, the patch has this new warning bundled in with
-Wliteral-conversion.  It's been brought up that -Wbool-conversions
might be a more suitable place for this warning.  Any thoughts on
this?

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to