<div class="gmail_quote">On Fri, Sep 23, 2011 at 1:10 PM, Richard Trieu <span dir="ltr"><<a href="mailto:rtrieu@google.com">rtrieu@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div id=":3xh">Add a new warning to -Wliteral-conversion to catch cases where a string literal<br>
is cast to a boolean.</div></blockquote></div><br><div>What ever happened to putting this under -Wbool-conversion? I think bool-conversion is a narrower categorization than literal-conversion. I suspect it is already a strict subset, and if not we could make it a strict subset.</div>
<div><br></div><div>Essentially, I know of lots of code (ours included) which uses -Wbool-conversion by default, but not a lot that can use -Wliteral-conversion.</div>