skvadrik / re2c

Lexer generator for C, C++, Go and Rust.
https://re2c.org
Other
1.07k stars 169 forks source link

Enable bison warnings #412

Closed trofi closed 2 years ago

trofi commented 2 years ago

The change allows catching fresh bison diagnostics. Current example:

  GEN      src/parse/parser.cc
src/parse/parser.ypp:60.2: warning: empty rule without %empty [-Wempty-rule]
   60 | : /* empty */
      |  ^
      |  %empty

%empty was introduced in bison-2.7.90 around 2013.