pointer <-> integer conversion warnings (bogus -Wall warnings)

Tim Hollebeek tim@hollebeek.com
Wed Mar 13 15:53:00 GMT 2002


> No.
> 
> Here's the rule I suggest for warnings about conversions between
> values of unequal width that I think makes sense for -Wall:
> 
> 	When a default conversion is implied by the code and that
> 	conversion is potentially lossy (on any architecture),
> 	generate a warning.

What I suggested was an explicit double cast!

Default conversions are irrelevant, other than justifying your error.

-Tim



More information about the Gcc mailing list