[cfe-dev] Fixing selector types on the GNU runtime
Chris Lattner
clattner at apple.com
Sun Jan 18 12:06:14 PST 2009
On Jan 18, 2009, at 8:14 AM, David Chisnall wrote:
> I've also included some fixes in this patch which turn NULL into
> (void*)0 when it is used as a sentinel in variadic functions. This
> gets rid of a load of warnings when compiling and stops it breaking
> on 64-bit architectures.
Why are you getting this? There are tons of other places that pass
NULL as a sentinel. Is NULL getting defined incorrectly for that
file? NULL needs to be a pointer type, so it should be fine on 64-bit
systems. Passing a raw "0" would not be.
-Chris
More information about the cfe-dev
mailing list