This is the mail archive of the gcc@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: Warning for unadorned 0 in varargs lists?


On Mon, 23 Aug 2004, Dave Korn wrote:

>   But the C language spec says that an integer constant zero must compare
> equal to a null pointer.

Comparing equal does not mean being interchangable as arguments to 
variadic functions that use va_arg.

Being interchangable as arguments to functions using va_arg does not mean 
being interchangable as arguments to standard variadic functions; this, 
however, is probably a defect.  (See comp.std.c passim and 
<http://www.srcf.ucam.org/~jsm28/gcc/pre-dr-6.txt>.)

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)


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