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/">http://codereview.appspot.com/4861041/</a></div>