This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

b18 ctype.h isXXX and -Wall -pedantic


When I use isdigit (and similar isXXX macros) from b18 ctype.h and
compile with -Wall -pedantic, I get spurious warnings for each use
of the macro:
	"warning: subscript has type `char'"

An appropriate fix would probably be to replace
	(_ctype_+1)[c]
in each of the macros with either
	(_ctype_+1)[(int)(c)]
or
	_ctype_[1+(int)(c)]
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]