Matthew Woehlke <[EMAIL PROTECTED]> wrote: > The OS is 11.00, and I can't tell about the compiler ('cc -v' is giving
FYI, I've checked in a slightly different change: Work around a compile-time error from the HP-UX 11.00 /bin/cc. * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name. (fts_read): Use a temporary to narrow the overused st_size member before using it in a switch statement. Reported by Matthew Woehlke. Index: lib/fts.c =================================================================== RCS file: /sources/gnulib/gnulib/lib/fts.c,v retrieving revision 1.28 diff -u -p -r1.28 fts.c --- lib/fts.c 21 Nov 2006 09:15:22 -0000 1.28 +++ lib/fts.c 22 Nov 2006 23:48:25 -0000 @@ -92,7 +92,7 @@ static char sccsid[] = "@(#)fts.c 8.6 (B # define DT_MUST_BE(d, t) false #endif -enum +enum Fts_stat { FTS_NO_STAT_REQUIRED = 1, FTS_STAT_REQUIRED = 2 @@ -731,7 +731,8 @@ name: t = sp->fts_path + NAPPEND(p->fts check_for_dir: if (p->fts_info == FTS_NSOK) { - switch (p->fts_statp->st_size) + enum Fts_stat need_stat = p->fts_statp->st_size; + switch (need_stat) { case FTS_STAT_REQUIRED: p->fts_info = fts_stat(sp, p, false);