This is the mail archive of the gcc-bugs@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]

[Bug c++/33403] "warning: missing sentinel in function call" for 0 rather than NULL



------- Comment #2 from sebor at roguewave dot com  2007-09-12 03:56 -------
(In reply to comment #1)
> This is not a bug, 0 will be pasted as the same size as an int which means it
> will most likely not be passed as the same size as a NULL pointer.

I don't know about "most likely." sizeof(int) == sizeof(void*) is still pretty
common, so my guess would be that the warning is more often wrong than not.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33403


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