Re: New gcc-4 compile error w/getc and isspace

2009-11-09 Thread Vin Shelton
Dave Korn wrote: Vin Shelton wrote: t2.c: In function ‘tst’: t2.c:9: error: lvalue required as left operand of assignment Did something recently change in the ctype.h or stdio.h header files to cause this? Thanks, Dave! - Vin -- Problem reports: http://cygwin.com/problems.html F

Re: New gcc-4 compile error w/getc and isspace

2009-11-08 Thread Dave Korn
Vin Shelton wrote: > t2.c: In function ‘tst’: > t2.c:9: error: lvalue required as left operand of assignment > Did something recently change in the ctype.h or stdio.h header files to > cause this? http://sourceware.org/ml/newlib/2009/msg01030.html cheers, DaveK -- Problem reports:

New gcc-4 compile error w/getc and isspace

2009-11-08 Thread Vin Shelton
Consider this module: #include #include void tst(FILE *fp) { int c; while ( isspace(c = getc(fp)) ) ; return; } gcc-4 -c t2.c t2.c: In function ‘tst’: t2.c:9: error: lvalue required as left operand of assignment I'm pretty sure this module used to compile successfully under gcc-4