Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2001:
[Freeciv-Dev] Re: Compiler-warnings
Home

[Freeciv-Dev] Re: Compiler-warnings

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Compiler-warnings
From: Falk Hueffner <falk.hueffner@xxxxxxxxxxxxxxxxxxxxxxxx>
Date: 23 Jan 2001 22:05:01 +0100

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



[Prev in Thread] Current Thread [Next in Thread]