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

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Sep 12 09:18:00 GMT 2007



------- 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



More information about the Gcc-bugs mailing list