X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/527187137ac6314b86246bca71cb996203b4fa10..3eb4f1a3e62807125a815dc572da9204b5b51865:/src/conflicts.c diff --git a/src/conflicts.c b/src/conflicts.c index 18c659da..ccd50ebf 100644 --- a/src/conflicts.c +++ b/src/conflicts.c @@ -584,7 +584,7 @@ conflicts_print (void) if (! glr_parser && rrc_total > 0 && expected_rr_conflicts != -1) { - warn (_("%%expect-rr applies only to GLR parsers")); + complain (Wother, _("%%expect-rr applies only to GLR parsers")); expected_rr_conflicts = -1; } @@ -601,9 +601,9 @@ conflicts_print (void) /* Report the total number of conflicts on STDERR. */ if (expected_sr_conflicts == -1 && expected_rr_conflicts == -1) { - if (!(warnings_flag & warnings_conflicts_sr)) + if (!(warnings_flag & Wconflicts_sr)) src_total = 0; - if (!(warnings_flag & warnings_conflicts_rr)) + if (!(warnings_flag & Wconflicts_rr)) rrc_total = 0; } if (src_total | rrc_total) @@ -618,14 +618,14 @@ conflicts_print (void) if (expected_sr_conflicts != -1 || expected_rr_conflicts != -1) { if (! src_ok) - complain (ngettext ("expected %d shift/reduce conflict", - "expected %d shift/reduce conflicts", - src_expected), + complain (complaint, ngettext ("expected %d shift/reduce conflict", + "expected %d shift/reduce conflicts", + src_expected), src_expected); if (! rrc_ok) - complain (ngettext ("expected %d reduce/reduce conflict", - "expected %d reduce/reduce conflicts", - rrc_expected), + complain (complaint, ngettext ("expected %d reduce/reduce conflict", + "expected %d reduce/reduce conflicts", + rrc_expected), rrc_expected); } }