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: "sebor at roguewave dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Sep 2007 03:56:02 -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 #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