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

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



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


In practice, how can it be anything other than a void*?


It can't. You know, the "-pedantic" option is called "-pedantic" for a

Yes, but there's a difference between pedantic and pointless. Although you've convinced me it is the former.

reason. It doesn't make a difference on any existing gcc platform, but
it would be possible to cnstruct a C99-compliant environment where it
[does].

I hadn't considered an environment where void* and some other pointer type (e.g. char* on a word-addressable machine) would actually have a different binary representation when pointing to the same memory.






Reply to: