Joel E. Denny wrote: > On Sat, 16 Apr 2011, Jim Meyering wrote: > >> I've just bootstrapped, configured with --enable-gcc-warnings, built >> and run "make check" on Fedora 15 (i.e., gcc version 4.6.0 20110413) >> I was surprised to see so many failures (abbreviated output below). >> >> However, they're all due to one newly-enabled gcc warning: >> note the [-Werror=unused-but-set-variable] in every case below. > > Thanks for the report. In all but one case, that warning is revealing an > old bug in glr.c. In the remaining case, it's suprious but easy to > suppress. I pushed the fixes below to master and branch-2.5. > >> At first I tried to turn off only that one new warning, >> but -Wno-unused-but-set-variable had no effect, so I >> resorted to -Wno-unused. > > In case it helps, either of those worked for me.
Thanks, Joel. FYI, now, using the latest sources from git, when I bootstrap, run ./configure --enable-gcc-warnings and then make and "make distcheck", I see this: /bin/sh ../build-aux/ylwrap ../src/parse-gram.y y.tab.c src/parse-gram.c y.tab.h src/parse-gram.h y.output src/parse-gram.output -- tests/bison -y -dv --warnings=all,error --report=all /bin/sh ../build-aux/ylwrap ../src/scan-code.l lex.yy.c src/scan-code.c -- flex /bin/sh ../build-aux/ylwrap ../src/scan-gram.l lex.yy.c src/scan-gram.c -- flex /bin/sh ../build-aux/ylwrap ../src/scan-skel.l lex.yy.c src/scan-skel.c -- flex /w/bison/bison-2.4.593-a78a/_build/tests/bison: line 11: /w/bison/bison-2.4.593-a78a/_build/src/bison: No such file or directory Can't open y.tab.[ch]: No such file or directory. make[1]: *** [src/parse-gram.c] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/w/bison/bison-2.4.593-a78a/_build' make: *** [distcheck] Error 1 I haven't had time to delve into it, yet.
