Subject: Re: compiler troubles
To: None <david@infotrek.demon.co.uk>
From: Patrick Welche <prlw1@cus.cam.ac.uk>
List: port-arm32
Date: 11/09/1996 16:34:27
> On a different note, I'm having trouble with one of the programs I use for
> my work. It appears to be related to the warnings I get at compile time.
> These warning do not appear when compiling for x86 Linux:
> 
> run.c: In function `load_persona':
> run.c:679: warning: comparison is always 1 due to limited range of data type
> 
> The message occurs several times, sometimes saying that it is always 0.
> The aforementioned line reads:
> 
> if (*temp2 > -1 && *temp2 < 14)
> 
> The next one is "comparison is always 0", and the line is:
> 
> while (*temp > 13 || *temp < 0)
> 
> The variables `temp' and `temp2' aren't declared anywhere, so I guess
> they're declared somewhere in the libraries? I'm not a C programmer,
> can anyway suggest how to fix this?


If you mailed me the source or put it somewhere I could read it, I
could take a look.

Patrick