[c++] warn if NULL is passed through varargs
Gabriel Dos Reis
gdr@integrable-solutions.net
Thu Oct 10 09:25:00 GMT 2002
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
More information about the Gcc-patches
mailing list