mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-23 03:03:02 +00:00
fixits: fix warnings about duplicates
* src/complain.c (duplicate_directive): Fix the complaint level. * tests/input.at: Adjust.
This commit is contained in:
@@ -409,7 +409,7 @@ duplicate_directive (char const *directive,
|
|||||||
else
|
else
|
||||||
complain_indent (&second, Wother, &i, _("duplicate directive: %s"), directive);
|
complain_indent (&second, Wother, &i, _("duplicate directive: %s"), directive);
|
||||||
i += SUB_INDENT;
|
i += SUB_INDENT;
|
||||||
complain_indent (&first, complaint, &i, _("previous declaration"));
|
complain_indent (&first, Wother, &i, _("previous declaration"));
|
||||||
fixits_register (&second, "");
|
fixits_register (&second, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2527,10 +2527,10 @@ fix-it:"input.y":{14:1-15:3}:"%file-prefix"
|
|||||||
input.y:17.1-19: warning: deprecated directive: '%fixed-output_files', use '%fixed-output-files' [-Wdeprecated]
|
input.y:17.1-19: warning: deprecated directive: '%fixed-output_files', use '%fixed-output-files' [-Wdeprecated]
|
||||||
fix-it:"input.y":{17:1-17:20}:"%fixed-output-files"
|
fix-it:"input.y":{17:1-17:20}:"%fixed-output-files"
|
||||||
input.y:18.1-19: warning: duplicate directive: %fixed_output-files [-Wother]
|
input.y:18.1-19: warning: duplicate directive: %fixed_output-files [-Wother]
|
||||||
input.y:17.1-19: previous declaration
|
input.y:17.1-19: previous declaration [-Wother]
|
||||||
fix-it:"input.y":{18:1-18:20}:""
|
fix-it:"input.y":{18:1-18:20}:""
|
||||||
input.y:19.1-19: warning: duplicate directive: %fixed-output-files [-Wother]
|
input.y:19.1-19: warning: duplicate directive: %fixed-output-files [-Wother]
|
||||||
input.y:17.1-19: previous declaration
|
input.y:17.1-19: previous declaration [-Wother]
|
||||||
fix-it:"input.y":{19:1-19:20}:""
|
fix-it:"input.y":{19:1-19:20}:""
|
||||||
input.y:20.1-19: warning: deprecated directive: '%name-prefix= "foo"', use '%define api.prefix {foo}' [-Wdeprecated]
|
input.y:20.1-19: warning: deprecated directive: '%name-prefix= "foo"', use '%define api.prefix {foo}' [-Wdeprecated]
|
||||||
fix-it:"input.y":{20:1-20:20}:"%define api.prefix {foo}"
|
fix-it:"input.y":{20:1-20:20}:"%define api.prefix {foo}"
|
||||||
|
|||||||
Reference in New Issue
Block a user