GCC headers and DJGPP port (OT)
Alexandre Oliva
aoliva@redhat.com
Sun Jul 23 19:09:00 GMT 2000
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
More information about the Gcc
mailing list