[Bug c++/18886] attribute sentinel doesn't work with C++

2004-12-08 Thread pinskia 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

[Bug c++/18886] attribute sentinel doesn't work with C++

2004-12-08 Thread salinger at sun dot felk dot cvut dot cz
--- Additional Comments From salinger at sun dot felk dot cvut dot cz 2004-12-08 13:22 --- > > NULL is expanded as __null in C++. > > This is inconsistent with sentinel testing. > Why do you think it is inconsistent? For me it is inconsistent at least conceptualy. In C++ (but not C) e

[Bug c++/18886] attribute sentinel doesn't work with C++

2004-12-08 Thread joseph at codesourcery dot com
--- Additional Comments From joseph at codesourcery dot com 2004-12-08 11:10 --- Subject: Re: New: attribute sentinel doesn't work with C++ On Wed, 8 Dec 2004, salinger at sun dot felk dot cvut dot cz wrote: > NULL is expanded as __null in C++. > This is inconsistent with sentinel te