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]

Re: GCC headers and DJGPP port (OT)


On Jul 23, 2000, Linus Torvalds <torvalds@transmeta.com> wrote:

> Basically I was just wondering why in the world gcc couldn't just
> recognize the "((void *)0)" construct as equivalent to the new
> __null?

Because then we wouldn't be able to warn about the potential mis-use
of NULL in a code snippet like:

void foo(void *);
void foo(char *);
void foo(int);
void foo(long);
...
  foo(NULL);

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


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