X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/6b5a748937ae95af26d78e9e5e7a335351a2970d..6652eeba585aff3e63b28d04435a4f9d8aeba43c:/src/conflicts.c diff --git a/src/conflicts.c b/src/conflicts.c index 989dfc25..105c5ceb 100644 --- a/src/conflicts.c +++ b/src/conflicts.c @@ -602,8 +602,10 @@ conflicts_print (void) } if (src_total | rrc_total) { - if (expected_sr_conflicts == -1 && expected_rr_conflicts == -1) - set_warning_issued (); + if (expected_sr_conflicts == -1 && src_total) + set_warning_issued (Wconflicts_sr); + if (expected_rr_conflicts == -1 && rrc_total) + set_warning_issued (Wconflicts_rr); if (! yacc_flag) fprintf (stderr, "%s: ", current_file); conflict_report (stderr, src_total, rrc_total);