[Freeciv-Dev] Re: Compiler-warnings
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Gerhard Killesreiter <killesreiter@xxxxxxxxxxxxxxxxxxxxxx> writes:
> When compiling on IRIX with gcc I get a lot of warnings:
>
> stdinhand.c: In function `cmdlevel_command':
> stdinhand.c:1957: warning: subscript has type `char'
>
> I guess they are not significant, but annoying. Would anybody want to
> have the hole list of the messages?
They are very significant on systems where 'char' defaults to 'signed
char' (like ARM), and the characters are in the 128...255 range, since
then a negative offset will be taken, which is rarely what was
meant. This especially evil since often only 7 bit characters are in
use, so it goes unnotified for a while.
Falk
- [Freeciv-Dev] Compiler-warnings, Gerhard Killesreiter, 2001/01/23
- [Freeciv-Dev] Re: Compiler-warnings,
Falk Hueffner <=
- [Freeciv-Dev] Re: Compiler-warnings, Gerhard Killesreiter, 2001/01/24
- [Freeciv-Dev] Re: Compiler-warnings, Dirk Stoecker, 2001/01/24
- [Freeciv-Dev] Re: Compiler-warnings, Gerhard Killesreiter, 2001/01/24
- [Freeciv-Dev] Re: Compiler-warnings, Raimar Falke, 2001/01/24
- [Freeciv-Dev] Re: Compiler-warnings, Gerhard Killesreiter, 2001/01/24
- [Freeciv-Dev] Re: Compiler-warnings, Raimar Falke, 2001/01/24
- [Freeciv-Dev] Re: Compiler-warnings, Stepan Roh, 2001/01/24
- [Freeciv-Dev] Re: Compiler-warnings, Raimar Falke, 2001/01/24
- [Freeciv-Dev] Re: Compiler-warnings, Tony Stuckey, 2001/01/24
- [Freeciv-Dev] Re: Compiler-warnings, Stepan Roh, 2001/01/24
|
|