Re: E 0.9.3 release?
Mark Miller <[email protected]>
| Newsgroups | gmane.comp.lang.e.general |
|---|---|
| Message-ID | <[email protected]> |
On Sun, Jan 2, 2011 at 11:36 AM, Bill Frantz <[email protected]> wrote: > On 1/1/11 at 10:12 PM, [email protected] (Mark Miller) wrote: > > >* New warning: "warning: array subscript has type `char'" > >for C code in byacc/j that seems innocent to me. And in any case is old > >third party code. > > Since C supports signed chars (an abomination on the world), a C > compiler which actually defaults to signed could cause array > underflow problems. YMMV. VWP. Caveat emptor. > > I would change their declarations to include "unsigned". > If I saw something that looked like indexing, I would understand. However, the warning complains, for example, about the last line of the following program fragment. This only happens to me using cygwin gcc on Windows. Compiling the same code on my Mac using regular gcc emits no warning. void print_pos(char *st_line,char *st_cptr) { char *s; if (st_line == 0) return; for (s = st_line; *s != '\n'; ++s) { if (isprint(*s) || *s == '\t') _______________________________________________ e-lang mailing list [email protected] http://www.eros-os.org/mailman/listinfo/e-lang