Looks great to me.

On Aug 10, 2011, at 6:09 PM, Richard Trieu wrote:

> 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.
> 
> Old warning:
> 
> warning: use of NULL in arithmetic operation [-Wnull-arithmetic]
>   return 10 <= NULL;
>             ^  ~~~~
> 
> New warning:
> 
> warning: comparison between NULL and non-pointer ('int' and NULL) 
> [-Wnull-arithmetic]
>   return 10 <= NULL;
>          ~~ ^  ~~~~
> 
> Patch attached and also available at http://codereview.appspot.com/4861041/
> <null_comparison_warning.patch>_______________________________________________
> cfe-commits mailing list
> [email protected]
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

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

Reply via email to