Commited at r137377<br><br><div class="gmail_quote">On Thu, Aug 11, 2011 at 1:44 PM, Ted Kremenek <span dir="ltr"><<a href="mailto:kremenek@apple.com">kremenek@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="word-wrap:break-word">Looks great to me.<div><br><div><div><div></div><div class="h5"><div>On Aug 10, 2011, at 6:09 PM, Richard Trieu wrote:</div><br></div></div><blockquote type="cite"><div><div></div><div class="h5">
The current warning in -Wnull-arithmetic for comparisons between NULL and non-pointers is not very helpful.  This patch will update the wording to be more helpful to users.<div><br></div><div>Old warning:</div><div><br></div>

<div><div>warning: use of NULL in arithmetic operation [-Wnull-arithmetic]</div><div>  return 10 <= NULL;</div><div>            ^  ~~~~</div></div><div><br></div><div>New warning:</div><div><br></div><div><div>warning: comparison between NULL and non-pointer ('int' and NULL) [-Wnull-arithmetic]</div>

<div>  return 10 <= NULL;</div><div>         ~~ ^  ~~~~</div></div><div><br></div><div>Patch attached and also available at <a href="http://codereview.appspot.com/4861041/" target="_blank">http://codereview.appspot.com/4861041/</a></div>

</div></div><span><null_comparison_warning.patch></span>_______________________________________________<br>cfe-commits mailing list<br><a href="mailto:cfe-commits@cs.uiuc.edu" target="_blank">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br></blockquote></div><br></div></div>
</blockquote></div><br>