[PATCH, C] Warn ordered comparison pointer with null pointer constant

Shujing Zhao pearly.zhao@oracle.com
Thu Apr 29 09:53:00 GMT 2010


Hi,
As Manuel's reply at http://gcc.gnu.org/ml/gcc-patches/2010-04/msg01425.html, 
this patch is to change the warning of (z >= (void *)0) as same as the warning 
of (z >= 0), if z is a pointer.

Tested on i686-pc-linux-gnu.
Is it ok for trunk?

Thanks
Pearly


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ChangeLog
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100429/1d414917/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr.patch
Type: text/x-patch
Size: 2541 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100429/1d414917/attachment.bin>


More information about the Gcc-patches mailing list