Warning for unadorned 0 in varargs lists?
Falk Hueffner
hueffner@informatik.uni-tuebingen.de
Mon Aug 23 15:58:00 GMT 2004
"Kaveh R. Ghazi" <ghazi@caip.rutgers.edu> writes:
> (Sorry about the hosed From: address in my previous message, the CAIP
> mailer system had a problem. Should be fixed now.)
>
>
> > Indeed -- you have to pass a pointer of the correct type, not just
> > "any pointer". Any proposed attribute syntax that doesn't take
> > this into account is pretty worthless imho.
> > Segher
>
> My proposed syntax does not preclude this. If you pass in a third
> argument sentinal_value of a particular type, it should DTRT.
My concern was about differentiating between 0 and NULL. If you care
about what works in practise, you should warn about neither; if you
care about pedantic standard compliance, you should warn for both.
--
Falk
More information about the Gcc
mailing list