[Freeciv-Dev] Re: Compiler-warnings
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Thu, Jan 25, 2001 at 11:56:13AM +0100, Falk Hueffner wrote:
> > > > 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'
> >
> > This is my code, and the subscript is a subscript in a short array.
[...]
> Well, you never subscript the array with a char. There's nothing wrong
> with your code. The warning is only triggered by the weird IRIX
> isalnum macros, and there's nothing one can do about it except
> -Wno-char-subscript. Please don't fix what's not broken.
! OK, I had not seen the isalnum() discussion. Does this cover
all cases?
--
Reinier
- [Freeciv-Dev] Re: Compiler-warnings, (continued)
- [Freeciv-Dev] Re: Compiler-warnings, Tony Stuckey, 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, Falk Hueffner, 2001/01/24
- [Freeciv-Dev] Re: Compiler-warnings, Dirk Stoecker, 2001/01/25
[Freeciv-Dev] Re: Compiler-warnings, Reinier Post, 2001/01/24
[Freeciv-Dev] Re: Compiler-warnings, Dirk Stoecker, 2001/01/24
|
|