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 #3 from pinskia at gcc dot gnu dot org  2007-09-12 09:18 -------
(In reply to comment #2)
> 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.

Common on ILP32 targets but since this was reported for LP64 target anyways,
what is the difference.  Remember sizeof(int) might be equal to sizeof(void*)
on most targets but it does not have to.  In fact this warning is for
portability reasons (though in this case is also correctness).


-- 


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]