This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [c++] warn if NULL is passed through varargs
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Michael Matz <matz at suse dot de>
- Cc: Alexandre Oliva <aoliva at redhat dot com>, "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>, <gcc-patches at gcc dot gnu dot org>
- Date: 10 Oct 2002 18:24:41 +0200
- Subject: Re: [c++] warn if NULL is passed through varargs
- Organization: Integrable Solutions
- References: <Pine.LNX.4.33.0210101740400.9652-100000@wotan.suse.de>
I'm not used to see much more contents in PS than in main body ;-}
Michael Matz <matz@suse.de> writes:
[...]
| For instance:
| blabla (1,2,3, NULL) gets a warning (on a perfectly fine machine),
It is not decided yet whether the warning should be on by default or not.
| now I
| probably have to write
| blabla (1,2,3 (void*)NULL), which is silly,
No, it is not silly: It is C.
-- Gaby