This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: One-line patch for gcc/varasm.c warning
- To: marekm at linux dot org dot pl, gcc-patches at gcc dot gnu dot org
- Subject: Re: One-line patch for gcc/varasm.c warning
- From: Linus Torvalds <torvalds at transmeta dot com>
- Date: Mon, 8 May 2000 22:43:27 -0700
- Newsgroups: linux.egcs.patches
- References: <4487.957543387@upchuck>
In article <200005051804.UAA22631@marekm.home> you write:
>Jeffrey A Law <law@cygnus.com> wrote:
>
>> Presumably your system has a bogus definition of NULL.
>
>It is defined as ((void *)0) - is this bogus?
No. It's the only sane value for NULL.
Certain old-fashioned people think it is wrong. They probably also
think that K&R C is the only way to code, and that only wimps actually
want the compiler to give sane error messages.
As you saw, that correct definition of NULL found a bug. Good for you.
Linus