This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PR c++/24745: unpleasant warning for "if (NULL)"


Manuel López-Ibáñez wrote:
! /* Or if one of OP0 or OP1 is not a pointer (null_node is not POINTER_TYPE). */

"Or if one of OP0 or OP1 is neither a pointer nor NULL." The comment above suggests to me that it will warn if either OP0 or OP1 is null, which is inaccurate.


Otherwise, the patch is OK.

Thanks,
Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]