On Mon, Jun 20, 2005 at 03:52:26PM +0100, Simon Wistow wrote: > "comparison is always true due to limited range of data type
Those are expected. Unfortunately, it's a case where gcc has an optimization that always triggers a warning; there's no way to write the code (AFAIK) to get the optimization but avoid the warning. The gcc folks seem to agree in principle that this should be fixed at some point, but there's not a rush of eager volunteers to actually do it.