Warning for unadorned 0 in varargs lists?
Joseph S. Myers
jsm@polyomino.org.uk
Mon Aug 23 16:31:00 GMT 2004
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)
More information about the Gcc
mailing list