This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18886] attribute sentinel doesn't work with C++
- 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: 8 Dec 2004 14:40:43 -0000
- Subject: [Bug c++/18886] attribute sentinel doesn't work with C++
- References: <20041208104431.18886.salinger@sun.felk.cvut.cz>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-08 14:40 -------
Actually the warning is correct __null is the size of an int and the size of the pointer, use a cast, now in
C NULL is usually defined as (void*)0 which usually has the cast but you should always cast it anyways.
Note this is mainly for 64bit targets.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18886