[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#217360: gcc-3.2: meaningless warning for %p in format strings



Jason Kraftcheck <kraftche@cae.wisc.edu> writes:

> The C standard says there's a difference between printing a void*
> and a int* (or any other type)?  How can a pointer passed through a
> var-args list be anything but a void*?  The C standard may say that
> %p prints a void*, but isn't any pointer passed through a var-args a
> void*?

I don't see that anywhere in the standard. As I see it, only the
default argument conversions are executed, which does not include this
conversion.

-- 
	Falk



Reply to: