mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-20 17:53:02 +00:00
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:
committed by
Akim Demaille
parent
b640317060
commit
73370a9daa
@@ -1132,8 +1132,8 @@ main (void)
|
||||
AT_BISON_OPTION_POPDEFS
|
||||
|
||||
AT_BISON_CHECK([-o input.c input.y], 0,,
|
||||
[[input.y:33.3-23: warning: unset value: $$
|
||||
input.y:30.3-35.37: warning: unused value: $3
|
||||
[[input.y:33.3-23: warning: unset value: $$ [-Wother]
|
||||
input.y:30.3-35.37: warning: unused value: $3 [-Wother]
|
||||
]])
|
||||
|
||||
AT_COMPILE([input])
|
||||
@@ -1292,42 +1292,42 @@ string;"}
|
||||
AT_BISON_OPTION_POPDEFS
|
||||
|
||||
AT_BISON_CHECK([[-o input.c input.y]], [0], [],
|
||||
[[input.y:8.48: warning: a ';' might be needed at the end of action code
|
||||
input.y:8.48: warning: future versions of Bison will not add the ';'
|
||||
input.y:9.48: warning: a ';' might be needed at the end of action code
|
||||
input.y:9.48: warning: future versions of Bison will not add the ';'
|
||||
input.y:10.48: warning: a ';' might be needed at the end of action code
|
||||
input.y:10.48: warning: future versions of Bison will not add the ';'
|
||||
input.y:11.48: warning: a ';' might be needed at the end of action code
|
||||
input.y:11.48: warning: future versions of Bison will not add the ';'
|
||||
input.y:12.48: warning: a ';' might be needed at the end of action code
|
||||
input.y:12.48: warning: future versions of Bison will not add the ';'
|
||||
input.y:13.48: warning: a ';' might be needed at the end of action code
|
||||
input.y:13.48: warning: future versions of Bison will not add the ';'
|
||||
input.y:20.1: warning: a ';' might be needed at the end of action code
|
||||
input.y:20.1: warning: future versions of Bison will not add the ';'
|
||||
input.y:21.1: warning: a ';' might be needed at the end of action code
|
||||
input.y:21.1: warning: future versions of Bison will not add the ';'
|
||||
input.y:22.1: warning: a ';' might be needed at the end of action code
|
||||
input.y:22.1: warning: future versions of Bison will not add the ';'
|
||||
input.y:23.1: warning: a ';' might be needed at the end of action code
|
||||
input.y:23.1: warning: future versions of Bison will not add the ';'
|
||||
input.y:24.1: warning: a ';' might be needed at the end of action code
|
||||
input.y:24.1: warning: future versions of Bison will not add the ';'
|
||||
input.y:25.1: warning: a ';' might be needed at the end of action code
|
||||
input.y:25.1: warning: future versions of Bison will not add the ';'
|
||||
input.y:31.1: warning: a ';' might be needed at the end of action code
|
||||
input.y:31.1: warning: future versions of Bison will not add the ';'
|
||||
input.y:32.1: warning: a ';' might be needed at the end of action code
|
||||
input.y:32.1: warning: future versions of Bison will not add the ';'
|
||||
input.y:33.1: warning: a ';' might be needed at the end of action code
|
||||
input.y:33.1: warning: future versions of Bison will not add the ';'
|
||||
input.y:34.1: warning: a ';' might be needed at the end of action code
|
||||
input.y:34.1: warning: future versions of Bison will not add the ';'
|
||||
input.y:35.1: warning: a ';' might be needed at the end of action code
|
||||
input.y:35.1: warning: future versions of Bison will not add the ';'
|
||||
input.y:36.1: warning: a ';' might be needed at the end of action code
|
||||
input.y:36.1: warning: future versions of Bison will not add the ';'
|
||||
[[input.y:8.48: warning: a ';' might be needed at the end of action code [-Wother]
|
||||
input.y:8.48: warning: future versions of Bison will not add the ';' [-Wother]
|
||||
input.y:9.48: warning: a ';' might be needed at the end of action code [-Wother]
|
||||
input.y:9.48: warning: future versions of Bison will not add the ';' [-Wother]
|
||||
input.y:10.48: warning: a ';' might be needed at the end of action code [-Wother]
|
||||
input.y:10.48: warning: future versions of Bison will not add the ';' [-Wother]
|
||||
input.y:11.48: warning: a ';' might be needed at the end of action code [-Wother]
|
||||
input.y:11.48: warning: future versions of Bison will not add the ';' [-Wother]
|
||||
input.y:12.48: warning: a ';' might be needed at the end of action code [-Wother]
|
||||
input.y:12.48: warning: future versions of Bison will not add the ';' [-Wother]
|
||||
input.y:13.48: warning: a ';' might be needed at the end of action code [-Wother]
|
||||
input.y:13.48: warning: future versions of Bison will not add the ';' [-Wother]
|
||||
input.y:20.1: warning: a ';' might be needed at the end of action code [-Wother]
|
||||
input.y:20.1: warning: future versions of Bison will not add the ';' [-Wother]
|
||||
input.y:21.1: warning: a ';' might be needed at the end of action code [-Wother]
|
||||
input.y:21.1: warning: future versions of Bison will not add the ';' [-Wother]
|
||||
input.y:22.1: warning: a ';' might be needed at the end of action code [-Wother]
|
||||
input.y:22.1: warning: future versions of Bison will not add the ';' [-Wother]
|
||||
input.y:23.1: warning: a ';' might be needed at the end of action code [-Wother]
|
||||
input.y:23.1: warning: future versions of Bison will not add the ';' [-Wother]
|
||||
input.y:24.1: warning: a ';' might be needed at the end of action code [-Wother]
|
||||
input.y:24.1: warning: future versions of Bison will not add the ';' [-Wother]
|
||||
input.y:25.1: warning: a ';' might be needed at the end of action code [-Wother]
|
||||
input.y:25.1: warning: future versions of Bison will not add the ';' [-Wother]
|
||||
input.y:31.1: warning: a ';' might be needed at the end of action code [-Wother]
|
||||
input.y:31.1: warning: future versions of Bison will not add the ';' [-Wother]
|
||||
input.y:32.1: warning: a ';' might be needed at the end of action code [-Wother]
|
||||
input.y:32.1: warning: future versions of Bison will not add the ';' [-Wother]
|
||||
input.y:33.1: warning: a ';' might be needed at the end of action code [-Wother]
|
||||
input.y:33.1: warning: future versions of Bison will not add the ';' [-Wother]
|
||||
input.y:34.1: warning: a ';' might be needed at the end of action code [-Wother]
|
||||
input.y:34.1: warning: future versions of Bison will not add the ';' [-Wother]
|
||||
input.y:35.1: warning: a ';' might be needed at the end of action code [-Wother]
|
||||
input.y:35.1: warning: future versions of Bison will not add the ';' [-Wother]
|
||||
input.y:36.1: warning: a ';' might be needed at the end of action code [-Wother]
|
||||
input.y:36.1: warning: future versions of Bison will not add the ';' [-Wother]
|
||||
]])
|
||||
|
||||
AT_MATCHES_CHECK([input.c], [[/\* TEST:N:2 \*/ \}$]], [[3]])
|
||||
|
||||
Reference in New Issue
Block a user