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: Dirk Stoecker <stoecker@xxxxxxxxxxxxxx>
Date: Thu, 25 Jan 2001 08:40:53 +0100 (MET)

On 24 Jan 2001, Falk Hueffner wrote:

> > > I have equal messages (and lots of others) on Amiga. This message should
> > > be (if equal to SAS-C) a warning, that char types are passed as function
> > > argument, e.g. func(char a, int b). This is "possible" portability
> > > problem, as in real the passed argument is of type int.
> 
> No, it's a warning about a chat used as array subscript. There's no
> problem in passing chars as parameters, as long as you have proper
> declarations.

Well, ok. SAS-C produces an additional but different warning then, which
is not reported by GCC :-)

Ciao
 ____  _ _  ____  _ _    _ _  ____
|    |  |  |    |  | \  / |  |    | the cool Gremlin from Bischofswerda
|  __   |   ____|  |  \/  |  |    | WWW: http://home.pages.de/~stoecker/
|    |  |  |       |      |  |    | PGP key available on www page.
|____| _|_ |____| _|_    _|_ |____| I hope AMIGA never ends to make fun!




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