X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/3e153163c7349c09938376f181ea4d8a1a02cdb5..836dc3342b26ecd944bf3c91a9990f49f46ca9ef:/src/gram.c?ds=inline diff --git a/src/gram.c b/src/gram.c index 5e14c60c..ef5353a6 100644 --- a/src/gram.c +++ b/src/gram.c @@ -312,10 +312,10 @@ grammar_rules_useless_report (const char *message) for (r = 0; r < nrules ; ++r) if (!rules[r].useful) { - complain_at (rules[r].location, w, "%s: ", message); + complain_at (rules[r].location, w | silent, "%s: ", message); rule_print (&rules[r], stderr); + warnings_print_categories (w); fprintf (stderr, "\n"); - fflush (stderr); } } }