This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [c++] warn if NULL is passed through varargs


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


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