20 Jun, 2010, jefflng wrote in the 1st comment:
Votes: 0
i had to reinstall cygwin on my comp and now i keep getting this warning

warning: array subscript has type 'char'

the line of code is this

while ( isspace (*argument) )

this is the only line i get it on but its every line, i never had this with my last version of cygwin, am i missing a file or something
20 Jun, 2010, Runter wrote in the 2nd comment:
Votes: 0
That should probably work just fine but just for giggles you can do:

while ( isspace (argument[0]) )

and see what happens. That should be the same thing.
20 Jun, 2010, Tyche wrote in the 3rd comment:
Votes: 0
jefflng said:
i had to reinstall cygwin on my comp and now i keep getting this warning

warning: array subscript has type 'char'

the line of code is this

while ( isspace (*argument) )

this is the only line i get it on but its every line, i never had this with my last version of cygwin, am i missing a file or something


It's not cygwin. It's a different behavior between gcc 3.x and gcc 4.x compilers.
isspace() wants an integer.

Try…
while ( isspace ((int)(*argument)) )
24 Jun, 2010, jefflng wrote in the 4th comment:
Votes: 0
thanks guys got it fixed
0.0/4