This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gcc-4.3-20080125] Bootstrap failure on i386-unknown-openbsd4.2: missing sentinel in function call


On Jan 30, 2008 7:38 PM, Dongsheng Song <dongsheng.song@gmail.com> wrote:
> See: http://www.linuxonly.nl/docs/2/0_Page_1.html

It says:
This is because NULL is not of the right type: it is defined as
integer 0 instead of a pointer with the value 0.

Except that is wrong from what the C99 standard says about the NULL macro:
The macros are
NULL
which expands to an implementation-defined null pointer constant

So no casting is needed as it is already a pointer type if we follow
the C99 standard (I think C90 says the same thing except I don't have
C90 in front of me).

Thanks,
Andrew Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]