This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33403] "warning: missing sentinel in function call" for 0 rather than NULL
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Sep 2007 09:18:20 -0000
- Subject: [Bug c++/33403] "warning: missing sentinel in function call" for 0 rather than NULL
- References: <bug-33403-15086@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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