egcs/fortran warnings (Was : possible spurious warning for isdigit)
Philippe De Muyter
phdm@macqel.be
Mon Nov 10 10:59:00 GMT 1997
>
> Or, let me know if these functions are supposed to accept
> int, not char, and I'll change g77 accordingly (though that
> would seem to be a painful thing to do, offhand).
>
> The functions take an int argument whose value is either representable
> as an unsigned char, or is EOF. gcc is warning when you pass a char,
> since when char is sign extended to int it may take on values which
> are not representable as an unsigned char.
In some places, is* is applied to a char, member of a char array.
I surmise there can't be an EOF there.
Perhaps would it then be enough to use an unsigned char array there.
Philippe
More information about the Gcc
mailing list