I don't know what version of gcc you are using, but gcc 2.95.3 and gcc 3.0.3 give me a warning. gcc has always issued that warning for me as long as I can remember.
David Justin Erenkrantz wrote: >On Tue, Jan 29, 2002 at 09:34:20PM -0500, Jeff Trawick wrote: > >>protocol.c: In function `ap_rgetline': >>protocol.c:424: warning: assignment of read-only variable `c' >> >>previously: const char c; >> > >Well, it didn't give a warning on Linux with gcc. We all know how >good a compiler *that* is. > >But, Ian already switched it, so it should be fine now. -- justin >
