mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-15 23:33:03 +00:00
warnings: remove spurious suffixes on context
Rectify a bug that introduced suffixes out of place. * src/complainc.c (complains): Handle all three special warning bits. * src/scan-code.l (show_sub_message): Remove useless argument. * tests/named-refs.at: Adjust. Signed-off-by: Akim Demaille <akim@lrde.epita.fr>
This commit is contained in:
committed by
Akim Demaille
parent
fa98bb3233
commit
a49f4904c3
@@ -130,7 +130,7 @@ complains (const location *loc, warnings flags, const char *message,
|
||||
error_message (loc, fatal, _("fatal error"), message, args);
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
else if (flags & (complaint | warnings_flag))
|
||||
else if (flags & (complaint | warnings_flag | silent))
|
||||
{
|
||||
const char* prefix =
|
||||
flags & (errors_flag | complaint) ? _("error") : _("warning");
|
||||
|
||||
Reference in New Issue
Block a user