Le 9 déc. 2012 à 22:32, Paul Eggert <egg...@cs.ucla.edu> a écrit :
> On 12/09/2012 07:46 AM, Akim Demaille wrote: >> No, it does not. Actually, it breaks it completely. > > Ah, I expect it's because I forgot about the second branch in that #if. > How about this patch instead? Hi Paul, Thanks for addressing this. This triggers many -Wunused-function warnings, some appearing in Bison's src/, so the build (with --enable-gcc-warnings) fails because of -Werror. Maybe the non-inline branch should use __attribute__(__used__)? gmake[2]: Entering directory `/Users/akim/src/gnu/bison-2.5/_build/48-debug/lib' GEN alloca.h GEN configmake.h GEN c++defs.h GEN arg-nonnull.h GEN warn-on-use.h GEN fcntl.h GEN getopt.h GEN inttypes.h GEN math.h GEN sched.h GEN signal.h GEN spawn.h GEN stdio.h GEN stdlib.h GEN string.h GEN sys/stat.h GEN sys/types.h GEN sys/wait.h GEN time.h GEN unistd.h GEN wchar.h GEN wctype.h gmake all-am gmake[3]: Entering directory `/Users/akim/src/gnu/bison-2.5/_build/48-debug/lib' CC main.o CC yyerror.o AR liby.a CC argmatch.o CC binary-io.o In file included from ../../../lib/binary-io.c:3:0: ../../../lib/binary-io.h:50:1: warning: 'set_binary_mode' defined but not used [-Wunused-function] set_binary_mode (int fd, int mode) ^ CC bitrotate.o In file included from ../../../lib/bitrotate.c:3:0: ../../../lib/bitrotate.h:36:1: warning: 'rotl64' defined but not used [-Wunused-function] rotl64 (uint64_t x, int n) ^ ../../../lib/bitrotate.h:45:1: warning: 'rotr64' defined but not used [-Wunused-function] rotr64 (uint64_t x, int n) ^ ../../../lib/bitrotate.h:55:1: warning: 'rotl32' defined but not used [-Wunused-function] rotl32 (uint32_t x, int n) ^ ../../../lib/bitrotate.h:64:1: warning: 'rotr32' defined but not used [-Wunused-function] rotr32 (uint32_t x, int n) ^ ../../../lib/bitrotate.h:73:1: warning: 'rotl_sz' defined but not used [-Wunused-function] rotl_sz (size_t x, int n) ^ ../../../lib/bitrotate.h:82:1: warning: 'rotr_sz' defined but not used [-Wunused-function] rotr_sz (size_t x, int n) ^ ../../../lib/bitrotate.h:93:1: warning: 'rotl16' defined but not used [-Wunused-function] rotl16 (uint16_t x, int n) ^ ../../../lib/bitrotate.h:104:1: warning: 'rotr16' defined but not used [-Wunused-function] rotr16 (uint16_t x, int n) ^ ../../../lib/bitrotate.h:115:1: warning: 'rotl8' defined but not used [-Wunused-function] rotl8 (uint8_t x, int n) ^ ../../../lib/bitrotate.h:126:1: warning: 'rotr8' defined but not used [-Wunused-function] rotr8 (uint8_t x, int n) ^ CC c-ctype.o CC c-strcasecmp.o CC c-strncasecmp.o CC cloexec.o CC close-stream.o CC closeout.o CC dirname.o In file included from ../../../lib/dirname.c:25:0: ../../../lib/xalloc.h:113:1: warning: 'xnrealloc' defined but not used [-Wunused-function] xnrealloc (void *p, size_t n, size_t s) ^ In file included from ../../../lib/dirname.c:25:0: ../../../lib/xalloc.h:176:1: warning: 'x2nrealloc' defined but not used [-Wunused-function] x2nrealloc (void *p, size_t *pn, size_t s) ^ ../../../lib/xalloc.h:215:1: warning: 'xcharalloc' defined but not used [-Wunused-function] xcharalloc (size_t n) ^ CC basename.o In file included from ../../../lib/basename.c:24:0: ../../../lib/xalloc.h:113:1: warning: 'xnrealloc' defined but not used [-Wunused-function] xnrealloc (void *p, size_t n, size_t s) ^ In file included from ../../../lib/basename.c:24:0: ../../../lib/xalloc.h:176:1: warning: 'x2nrealloc' defined but not used [-Wunused-function] x2nrealloc (void *p, size_t *pn, size_t s) ^ ../../../lib/xalloc.h:215:1: warning: 'xcharalloc' defined but not used [-Wunused-function] xcharalloc (size_t n) ^ CC dirname-lgpl.o CC basename-lgpl.o CC stripslash.o CC exitfail.o CC fatal-signal.o In file included from ../../../lib/fatal-signal.c:30:0: ../../../lib/xalloc.h:113:1: warning: 'xnrealloc' defined but not used [-Wunused-function] xnrealloc (void *p, size_t n, size_t s) ^ In file included from ../../../lib/fatal-signal.c:30:0: ../../../lib/xalloc.h:176:1: warning: 'x2nrealloc' defined but not used [-Wunused-function] x2nrealloc (void *p, size_t *pn, size_t s) ^ ../../../lib/xalloc.h:215:1: warning: 'xcharalloc' defined but not used [-Wunused-function] xcharalloc (size_t n) ^ CC fd-hook.o CC fd-safer-flag.o CC dup-safer-flag.o CC fopen-safer.o CC hash.o In file included from ../../../lib/hash.c:29:0: ../../../lib/bitrotate.h:36:1: warning: 'rotl64' defined but not used [-Wunused-function] rotl64 (uint64_t x, int n) ^ ../../../lib/bitrotate.h:45:1: warning: 'rotr64' defined but not used [-Wunused-function] rotr64 (uint64_t x, int n) ^ ../../../lib/bitrotate.h:55:1: warning: 'rotl32' defined but not used [-Wunused-function] rotl32 (uint32_t x, int n) ^ ../../../lib/bitrotate.h:64:1: warning: 'rotr32' defined but not used [-Wunused-function] rotr32 (uint32_t x, int n) ^ ../../../lib/bitrotate.h:73:1: warning: 'rotl_sz' defined but not used [-Wunused-function] rotl_sz (size_t x, int n) ^ ../../../lib/bitrotate.h:93:1: warning: 'rotl16' defined but not used [-Wunused-function] rotl16 (uint16_t x, int n) ^ ../../../lib/bitrotate.h:104:1: warning: 'rotr16' defined but not used [-Wunused-function] rotr16 (uint16_t x, int n) ^ ../../../lib/bitrotate.h:115:1: warning: 'rotl8' defined but not used [-Wunused-function] rotl8 (uint8_t x, int n) ^ ../../../lib/bitrotate.h:126:1: warning: 'rotr8' defined but not used [-Wunused-function] rotr8 (uint8_t x, int n) ^ CC localcharset.o CC lock.o CC math.o CC mbchar.o In file included from ../../../lib/mbchar.c:23:0: ../../../lib/mbchar.h:244:1: warning: 'mb_width_aux' defined but not used [-Wunused-function] mb_width_aux (wint_t wc) ^ In file included from ../../../lib/mbchar.c:23:0: ../../../lib/mbchar.h:265:1: warning: 'mb_copy' defined but not used [-Wunused-function] mb_copy (mbchar_t *new_mbc, const mbchar_t *old_mbc) ^ In file included from ../../../lib/mbchar.c:23:0: ../../../lib/mbchar.h:313:1: warning: 'is_basic' defined but not used [-Wunused-function] is_basic (char c) ^ CC mbschr.o In file included from ../../../lib/mbuiter.h:106:0, from ../../../lib/mbschr.c:23: ../../../lib/mbchar.h:244:1: warning: 'mb_width_aux' defined but not used [-Wunused-function] mb_width_aux (wint_t wc) ^ In file included from ../../../lib/mbschr.c:23:0: ../../../lib/mbuiter.h:190:1: warning: 'mbuiter_multi_reloc' defined but not used [-Wunused-function] mbuiter_multi_reloc (struct mbuiter_multi *iter, ptrdiff_t ptrdiff) ^ ../../../lib/mbuiter.h:196:1: warning: 'mbuiter_multi_copy' defined but not used [-Wunused-function] mbuiter_multi_copy (struct mbuiter_multi *new_iter, const struct mbuiter_multi *old_iter) ^ CC mbsrchr.o In file included from ../../../lib/mbuiter.h:106:0, from ../../../lib/mbsrchr.c:23: ../../../lib/mbchar.h:244:1: warning: 'mb_width_aux' defined but not used [-Wunused-function] mb_width_aux (wint_t wc) ^ In file included from ../../../lib/mbsrchr.c:23:0: ../../../lib/mbuiter.h:190:1: warning: 'mbuiter_multi_reloc' defined but not used [-Wunused-function] mbuiter_multi_reloc (struct mbuiter_multi *iter, ptrdiff_t ptrdiff) ^ ../../../lib/mbuiter.h:196:1: warning: 'mbuiter_multi_copy' defined but not used [-Wunused-function] mbuiter_multi_copy (struct mbuiter_multi *new_iter, const struct mbuiter_multi *old_iter) ^ CC mbswidth.o CC mbuiter.o In file included from ../../../lib/mbuiter.h:106:0, from ../../../lib/mbuiter.c:3: ../../../lib/mbchar.h:244:1: warning: 'mb_width_aux' defined but not used [-Wunused-function] mb_width_aux (wint_t wc) ^ In file included from ../../../lib/mbuiter.c:3:0: ../../../lib/mbuiter.h:129:1: warning: 'mbuiter_multi_next' defined but not used [-Wunused-function] mbuiter_multi_next (struct mbuiter_multi *iter) ^ In file included from ../../../lib/mbuiter.c:3:0: ../../../lib/mbuiter.h:190:1: warning: 'mbuiter_multi_reloc' defined but not used [-Wunused-function] mbuiter_multi_reloc (struct mbuiter_multi *iter, ptrdiff_t ptrdiff) ^ ../../../lib/mbuiter.h:196:1: warning: 'mbuiter_multi_copy' defined but not used [-Wunused-function] mbuiter_multi_copy (struct mbuiter_multi *new_iter, const struct mbuiter_multi *old_iter) ^ CC pipe2.o In file included from ../../../lib/pipe2.c:25:0: ../../../lib/binary-io.h:50:1: warning: 'set_binary_mode' defined but not used [-Wunused-function] set_binary_mode (int fd, int mode) ^ CC pipe2-safer.o CC printf-frexp.o CC printf-frexpl.o CC progname.o CC quotearg.o In file included from ../../../lib/quotearg.c:32:0: ../../../lib/xalloc.h:113:1: warning: 'xnrealloc' defined but not used [-Wunused-function] xnrealloc (void *p, size_t n, size_t s) ^ In file included from ../../../lib/quotearg.c:32:0: ../../../lib/xalloc.h:176:1: warning: 'x2nrealloc' defined but not used [-Wunused-function] x2nrealloc (void *p, size_t *pn, size_t s) ^ CC sig-handler.o In file included from ../../../lib/sig-handler.c:3:0: ../../../lib/sig-handler.h:35:1: warning: 'get_handler' defined but not used [-Wunused-function] get_handler (struct sigaction const *a) ^ CC spawn-pipe.o CC stdio.o CC strnlen1.o CC threadlib.o CC unistd.o CC dup-safer.o CC fd-safer.o CC pipe-safer.o CC width.o CC wait-process.o In file included from ../../../lib/wait-process.c:34:0: ../../../lib/xalloc.h:113:1: warning: 'xnrealloc' defined but not used [-Wunused-function] xnrealloc (void *p, size_t n, size_t s) ^ In file included from ../../../lib/wait-process.c:34:0: ../../../lib/xalloc.h:176:1: warning: 'x2nrealloc' defined but not used [-Wunused-function] x2nrealloc (void *p, size_t *pn, size_t s) ^ ../../../lib/xalloc.h:215:1: warning: 'xcharalloc' defined but not used [-Wunused-function] xcharalloc (size_t n) ^ CC wctype-h.o CC xmalloc.o In file included from ../../../lib/xmalloc.c:22:0: ../../../lib/xalloc.h:113:1: warning: 'xnrealloc' defined but not used [-Wunused-function] xnrealloc (void *p, size_t n, size_t s) ^ In file included from ../../../lib/xmalloc.c:22:0: ../../../lib/xalloc.h:215:1: warning: 'xcharalloc' defined but not used [-Wunused-function] xcharalloc (size_t n) ^ CC xalloc-die.o In file included from ../../../lib/xalloc-die.c:21:0: ../../../lib/xalloc.h:113:1: warning: 'xnrealloc' defined but not used [-Wunused-function] xnrealloc (void *p, size_t n, size_t s) ^ In file included from ../../../lib/xalloc-die.c:21:0: ../../../lib/xalloc.h:176:1: warning: 'x2nrealloc' defined but not used [-Wunused-function] x2nrealloc (void *p, size_t *pn, size_t s) ^ ../../../lib/xalloc.h:215:1: warning: 'xcharalloc' defined but not used [-Wunused-function] xcharalloc (size_t n) ^ CC xsize.o In file included from ../../../lib/xsize.c:3:0: ../../../lib/xsize.h:71:1: warning: 'xsum3' defined but not used [-Wunused-function] xsum3 (size_t size1, size_t size2, size_t size3) ^ ../../../lib/xsize.h:81:1: warning: 'xsum4' defined but not used [-Wunused-function] xsum4 (size_t size1, size_t size2, size_t size3, size_t size4) ^ ../../../lib/xsize.h:91:1: warning: 'xmax' defined but not used [-Wunused-function] xmax (size_t size1, size_t size2) ^ CC xstrndup.o In file included from ../../../lib/xstrndup.c:24:0: ../../../lib/xalloc.h:113:1: warning: 'xnrealloc' defined but not used [-Wunused-function] xnrealloc (void *p, size_t n, size_t s) ^ In file included from ../../../lib/xstrndup.c:24:0: ../../../lib/xalloc.h:176:1: warning: 'x2nrealloc' defined but not used [-Wunused-function] x2nrealloc (void *p, size_t *pn, size_t s) ^ ../../../lib/xalloc.h:215:1: warning: 'xcharalloc' defined but not used [-Wunused-function] xcharalloc (size_t n) ^ CC get-errno.o CC abitset.o In file included from ../../../lib/libiberty.h:34:0, from ../../../lib/bbitset.h:24, from ../../../lib/bitset.h:26, from ../../../lib/abitset.h:23, from ../../../lib/abitset.c:23: ../../../lib/xalloc.h:113:1: warning: 'xnrealloc' defined but not used [-Wunused-function] xnrealloc (void *p, size_t n, size_t s) ^ In file included from ../../../lib/libiberty.h:34:0, from ../../../lib/bbitset.h:24, from ../../../lib/bitset.h:26, from ../../../lib/abitset.h:23, from ../../../lib/abitset.c:23: ../../../lib/xalloc.h:176:1: warning: 'x2nrealloc' defined but not used [-Wunused-function] x2nrealloc (void *p, size_t *pn, size_t s) ^ ../../../lib/xalloc.h:215:1: warning: 'xcharalloc' defined but not used [-Wunused-function] xcharalloc (size_t n) ^ CC bitset.o In file included from ../../../lib/libiberty.h:34:0, from ../../../lib/bbitset.h:24, from ../../../lib/bitset.h:26, from ../../../lib/bitset.c:22: ../../../lib/xalloc.h:113:1: warning: 'xnrealloc' defined but not used [-Wunused-function] xnrealloc (void *p, size_t n, size_t s) ^ In file included from ../../../lib/libiberty.h:34:0, from ../../../lib/bbitset.h:24, from ../../../lib/bitset.h:26, from ../../../lib/bitset.c:22: ../../../lib/xalloc.h:176:1: warning: 'x2nrealloc' defined but not used [-Wunused-function] x2nrealloc (void *p, size_t *pn, size_t s) ^ ../../../lib/xalloc.h:215:1: warning: 'xcharalloc' defined but not used [-Wunused-function] xcharalloc (size_t n) ^ CC bitset_stats.o In file included from ../../../lib/libiberty.h:34:0, from ../../../lib/bbitset.h:24, from ../../../lib/bitset_stats.h:23, from ../../../lib/bitset_stats.c:29: ../../../lib/xalloc.h:113:1: warning: 'xnrealloc' defined but not used [-Wunused-function] xnrealloc (void *p, size_t n, size_t s) ^ In file included from ../../../lib/libiberty.h:34:0, from ../../../lib/bbitset.h:24, from ../../../lib/bitset_stats.h:23, from ../../../lib/bitset_stats.c:29: ../../../lib/xalloc.h:176:1: warning: 'x2nrealloc' defined but not used [-Wunused-function] x2nrealloc (void *p, size_t *pn, size_t s) ^ ../../../lib/xalloc.h:215:1: warning: 'xcharalloc' defined but not used [-Wunused-function] xcharalloc (size_t n) ^ CC bitsetv.o In file included from ../../../lib/libiberty.h:34:0, from ../../../lib/bbitset.h:24, from ../../../lib/bitset.h:26, from ../../../lib/bitsetv.h:23, from ../../../lib/bitsetv.c:21: ../../../lib/xalloc.h:113:1: warning: 'xnrealloc' defined but not used [-Wunused-function] xnrealloc (void *p, size_t n, size_t s) ^ In file included from ../../../lib/libiberty.h:34:0, from ../../../lib/bbitset.h:24, from ../../../lib/bitset.h:26, from ../../../lib/bitsetv.h:23, from ../../../lib/bitsetv.c:21: ../../../lib/xalloc.h:176:1: warning: 'x2nrealloc' defined but not used [-Wunused-function] x2nrealloc (void *p, size_t *pn, size_t s) ^ ../../../lib/xalloc.h:215:1: warning: 'xcharalloc' defined but not used [-Wunused-function] xcharalloc (size_t n) ^ CC ebitset.o In file included from ../../../lib/libiberty.h:34:0, from ../../../lib/bbitset.h:24, from ../../../lib/bitset.h:26, from ../../../lib/ebitset.h:23, from ../../../lib/ebitset.c:22: ../../../lib/xalloc.h:113:1: warning: 'xnrealloc' defined but not used [-Wunused-function] xnrealloc (void *p, size_t n, size_t s) ^ In file included from ../../../lib/libiberty.h:34:0, from ../../../lib/bbitset.h:24, from ../../../lib/bitset.h:26, from ../../../lib/ebitset.h:23, from ../../../lib/ebitset.c:22: ../../../lib/xalloc.h:176:1: warning: 'x2nrealloc' defined but not used [-Wunused-function] x2nrealloc (void *p, size_t *pn, size_t s) ^ ../../../lib/xalloc.h:215:1: warning: 'xcharalloc' defined but not used [-Wunused-function] xcharalloc (size_t n) ^ CC lbitset.o In file included from ../../../lib/libiberty.h:34:0, from ../../../lib/bbitset.h:24, from ../../../lib/bitset.h:26, from ../../../lib/lbitset.h:23, from ../../../lib/lbitset.c:23: ../../../lib/xalloc.h:113:1: warning: 'xnrealloc' defined but not used [-Wunused-function] xnrealloc (void *p, size_t n, size_t s) ^ In file included from ../../../lib/libiberty.h:34:0, from ../../../lib/bbitset.h:24, from ../../../lib/bitset.h:26, from ../../../lib/lbitset.h:23, from ../../../lib/lbitset.c:23: ../../../lib/xalloc.h:176:1: warning: 'x2nrealloc' defined but not used [-Wunused-function] x2nrealloc (void *p, size_t *pn, size_t s) ^ ../../../lib/xalloc.h:215:1: warning: 'xcharalloc' defined but not used [-Wunused-function] xcharalloc (size_t n) ^ CC vbitset.o In file included from ../../../lib/libiberty.h:34:0, from ../../../lib/bbitset.h:24, from ../../../lib/bitset.h:26, from ../../../lib/vbitset.h:23, from ../../../lib/vbitset.c:22: ../../../lib/xalloc.h:113:1: warning: 'xnrealloc' defined but not used [-Wunused-function] xnrealloc (void *p, size_t n, size_t s) ^ In file included from ../../../lib/libiberty.h:34:0, from ../../../lib/bbitset.h:24, from ../../../lib/bitset.h:26, from ../../../lib/vbitset.h:23, from ../../../lib/vbitset.c:22: ../../../lib/xalloc.h:176:1: warning: 'x2nrealloc' defined but not used [-Wunused-function] x2nrealloc (void *p, size_t *pn, size_t s) ^ ../../../lib/xalloc.h:215:1: warning: 'xcharalloc' defined but not used [-Wunused-function] xcharalloc (size_t n) ^ CC bitsetv-print.o In file included from ../../../lib/libiberty.h:34:0, from ../../../lib/bbitset.h:24, from ../../../lib/bitset.h:26, from ../../../lib/bitsetv.h:23, from ../../../lib/bitsetv-print.h:23, from ../../../lib/bitsetv-print.c:21: ../../../lib/xalloc.h:113:1: warning: 'xnrealloc' defined but not used [-Wunused-function] xnrealloc (void *p, size_t n, size_t s) ^ In file included from ../../../lib/libiberty.h:34:0, from ../../../lib/bbitset.h:24, from ../../../lib/bitset.h:26, from ../../../lib/bitsetv.h:23, from ../../../lib/bitsetv-print.h:23, from ../../../lib/bitsetv-print.c:21: ../../../lib/xalloc.h:176:1: warning: 'x2nrealloc' defined but not used [-Wunused-function] x2nrealloc (void *p, size_t *pn, size_t s) ^ ../../../lib/xalloc.h:215:1: warning: 'xcharalloc' defined but not used [-Wunused-function] xcharalloc (size_t n) ^ CC timevar.o In file included from ../../../lib/../src/system.h:63:0, from ../../../lib/timevar.c:35: ../../../lib/xalloc.h:113:1: warning: 'xnrealloc' defined but not used [-Wunused-function] xnrealloc (void *p, size_t n, size_t s) ^ In file included from ../../../lib/../src/system.h:63:0, from ../../../lib/timevar.c:35: ../../../lib/xalloc.h:176:1: warning: 'x2nrealloc' defined but not used [-Wunused-function] x2nrealloc (void *p, size_t *pn, size_t s) ^ ../../../lib/xalloc.h:215:1: warning: 'xcharalloc' defined but not used [-Wunused-function] xcharalloc (size_t n) ^ CC asnprintf.o CC error.o CC fpending.o CC fprintf.o CC fseterr.o CC getopt.o CC getopt1.o CC isnand.o CC isnanf.o CC isnanl.o CC obstack.o CC obstack_printf.o CC open.o CC perror.o CC printf.o CC printf-args.o CC printf-parse.o In file included from ../../../lib/printf-parse.c:72:0: ../../../lib/xsize.h:71:1: warning: 'xsum3' defined but not used [-Wunused-function] xsum3 (size_t size1, size_t size2, size_t size3) ^ ../../../lib/xsize.h:81:1: warning: 'xsum4' defined but not used [-Wunused-function] xsum4 (size_t size1, size_t size2, size_t size3, size_t size4) ^ ../../../lib/xsize.h:91:1: warning: 'xmax' defined but not used [-Wunused-function] xmax (size_t size1, size_t size2) ^ CC rawmemchr.o CC snprintf.o CC sprintf.o CC stat.o CC strchrnul.o CC strerror.o CC strerror-override.o CC strerror_r.o CC strverscmp.o CC vasnprintf.o In file included from ../../../lib/vasnprintf.c:88:0: ../../../lib/xsize.h:71:1: warning: 'xsum3' defined but not used [-Wunused-function] xsum3 (size_t size1, size_t size2, size_t size3) ^ CC vfprintf.o CC vsnprintf.o CC vsprintf.o CC wcwidth.o CC xmemdup0.o In file included from ../../../lib/xmemdup0.c:21:0: ../../../lib/xalloc.h:113:1: warning: 'xnrealloc' defined but not used [-Wunused-function] AR libbison.a /opt/local/bin/ranlib: file: libbison.a(fd-hook.o) has no symbols /opt/local/bin/ranlib: file: libbison.a(math.o) has no symbols /opt/local/bin/ranlib: file: libbison.a(stdio.o) has no symbols /opt/local/bin/ranlib: file: libbison.a(threadlib.o) has no symbols /opt/local/bin/ranlib: file: libbison.a(unistd.o) has no symbols /opt/local/bin/ranlib: file: libbison.a(wctype-h.o) has no symbols ranlib: file: libbison.a(fd-hook.o) has no symbols ranlib: file: libbison.a(math.o) has no symbols ranlib: file: libbison.a(stdio.o) has no symbols ranlib: file: libbison.a(threadlib.o) has no symbols ranlib: file: libbison.a(unistd.o) has no symbols ranlib: file: libbison.a(wctype-h.o) has no symbols GEN charset.alias GEN ref-add.sed GEN ref-del.sed gmake[3]: Leaving directory `/Users/akim/src/gnu/bison-2.5/_build/48-debug/lib' gmake[2]: Leaving directory `/Users/akim/src/gnu/bison-2.5/_build/48-debug/lib' Making all in data gmake[2]: Entering directory `/Users/akim/src/gnu/bison-2.5/_build/48-debug/data' gmake[2]: Nothing to be done for `all'. gmake[2]: Leaving directory `/Users/akim/src/gnu/bison-2.5/_build/48-debug/data' Making all in src gmake[2]: Entering directory `/Users/akim/src/gnu/bison-2.5/_build/48-debug/src' gmake all-am gmake[3]: Entering directory `/Users/akim/src/gnu/bison-2.5/_build/48-debug/src' CC AnnotationList.o In file included from ../../../src/system.h:63:0, from ../../../src/AnnotationList.c:21: ../../../lib/xalloc.h:113:1: error: 'xnrealloc' defined but not used [-Werror=unused-function] xnrealloc (void *p, size_t n, size_t s) ^ In file included from ../../../src/system.h:63:0, from ../../../src/AnnotationList.c:21: ../../../lib/xalloc.h:176:1: error: 'x2nrealloc' defined but not used [-Werror=unused-function] x2nrealloc (void *p, size_t *pn, size_t s) ^ ../../../lib/xalloc.h:215:1: error: 'xcharalloc' defined but not used [-Werror=unused-function] xcharalloc (size_t n) ^ cc1: all warnings being treated as errors gmake[3]: *** [AnnotationList.o] Error 1 gmake[3]: Leaving directory `/Users/akim/src/gnu/bison-2.5/_build/48-debug/src' gmake[2]: *** [all] Error 2 gmake[2]: Leaving directory `/Users/akim/src/gnu/bison-2.5/_build/48-debug/src' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/Users/akim/src/gnu/bison-2.5/_build/48-debug' gmake: *** [all] Error 2 Compilation FAILED: /Users/akim/src/gnu/bison-2.5: build-for-darwin exit 2