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] |
Hi,I suppose we can quickly resolve, one way or another, this rather old issue. Considering:
extern void z(); void h() { if ( z != (void*)0 ); }we -Waddress warn in C and we don't in C++, due to the rather subtle differences between null_pointer_constant_p and null_ptr_cst_p. I believe we could as well warn in C++ too, but then I'm afraid we have to handle the case specially, like in the below. What do you think?
Thanks! Paolo. //////////////////////
Attachment:
patch_43906
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |