warnings: display warnings categories

* src/complain.c (error_message): Call 'warnings_print_categories'.
* src/gram.c (grammar_rules_useless_report): Display itself warning
category.
* tests/actions.at, tests/conflicts.at, tests/existing.at,
tests/input.at, tests/named-refs.at, tests/output.at, tests/reduce.at,
tests/regression.at, tests/skeletons.at: Adjust.
* NEWS: Document this.

Signed-off-by: Akim Demaille <akim@lrde.epita.fr>
This commit is contained in:
Victor Santet
2012-06-29 16:23:42 +02:00
committed by Akim Demaille
parent b640317060
commit 73370a9daa
12 changed files with 216 additions and 207 deletions

14
NEWS
View File

@@ -2,7 +2,15 @@ GNU Bison NEWS
* Noteworthy changes in release ?.? (????-??-??) [?]
** Warnings about useless semantic types
** Warnings
*** Warning categories are now diplayed in warnings
For instance:
foo.y:4.6: warning: type clash on default action: <foo> != <bar> [-Wother]
*** Useless semantic types
Bison now warns about useless (uninhabited) semantic types. Since
semantic types are not declared to Bison (they are defined in the opaque
@@ -19,7 +27,7 @@ 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
** Warnings about undeclared symbols
*** Undeclared symbols
Bison used to raise an error for %printer and %destructor directives for
undefined symbols.
@@ -31,7 +39,7 @@ GNU Bison NEWS
This is now only a warning.
** Warnings about useless destructors or printers
*** Useless destructors or printers
Bison now warns about useless destructors or printers. In the following
example, the printer for <type1>, and the destructor for <type2> are