Open phmccarty opened 3 years ago
Thanks, bison. I think we should take this opportunity to switch away from yacc mode and go with pure bison like flatpak did to kill some warnings. I doubt anyone is using anything except bison.
Seems to be fixed with bison 3.8.1. I guess the compatibility break was not intended:
* Noteworthy changes in release 3.8.1 (2021-09-11) [stable]
The generation of prototypes for yylex and yyerror in Yacc mode is
breaking existing grammar files. To avoid breaking too many grammars, the
prototypes are now generated when `-y/--yacc` is used *and* the
`POSIXLY_CORRECT` environment variable is defined.
Avoid using `-y`/`--yacc` simply to comply with Yacc's file name
conventions, rather, use `-o y.tab.c`. Autoconf's AC_PROG_YACC macro uses
`-y`. Avoid it if possible, for instance by using gnulib's gl_PROG_BISON.
These are the errors I am seeing:
From the bison 3.8 release notes: