mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-12 05:43:03 +00:00
undefined but unused is a warning
* src/symtab.c (symbol_check_defined): Undeclared symbols are only a warning. * tests/input.at (Undeclared symbols used for a printer or destructor): Rename as... (Undefined symbols): this, and check this case. * NEWS: Doc it.
This commit is contained in:
9
NEWS
9
NEWS
@@ -36,18 +36,17 @@ GNU Bison NEWS
|
||||
3.28-34: warning: type <type3> is used, but is not associated to any symbol
|
||||
4.28-34: warning: type <type4> is used, but is not associated to any symbol
|
||||
|
||||
*** Undeclared symbols
|
||||
*** Undefined but unused symbols
|
||||
|
||||
Bison used to raise an error for %printer and %destructor directives for
|
||||
undefined symbols.
|
||||
Bison used to raise an error for undefined symbols that are not used in
|
||||
the grammar. This is now only a warning.
|
||||
|
||||
%printer {} symbol1
|
||||
%destructor {} symbol2
|
||||
%type <type> symbol3
|
||||
%%
|
||||
exp: "a";
|
||||
|
||||
This is now only a warning.
|
||||
|
||||
*** Useless destructors or printers
|
||||
|
||||
Bison now warns about useless destructors or printers. In the following
|
||||
|
||||
Reference in New Issue
Block a user