This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Warning for unadorned 0 in varargs lists?
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: "Dave Korn" <dk at artimi dot com>
- Cc: "'Kaveh R. Ghazi'" <ghazi at caip dot rutgers dot edu>, <hueffner at informatik dot uni-tuebingen dot de>, <espie at quatramaran dot ens dot fr>, <gcc at gcc dot gnu dot org>, <jsm at polyomino dot org dot uk>, <segher at kernel dot crashing dot org>
- Date: Mon, 23 Aug 2004 18:28:13 +0200
- Subject: Re: Warning for unadorned 0 in varargs lists?
- References: <NUTMEGiGXix4A2DreBB00000edd@NUTMEG.CAM.ARTIMI.COM>
* Dave Korn:
> But the C language spec says that an integer constant zero must compare
> equal to a null pointer.
>
> So why aren't we saying that the 64-bit ABIs are non-conformant?
When passed through a variadic function argument, an integer constant
zero is no longer a constant at the point where it matters.