mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-14 06:43:03 +00:00
style changes
* src/complain.c, src/reader.c, src/reduce.c, src/main.c: Fix indentation. Simplify a bit.
This commit is contained in:
committed by
Akim Demaille
parent
415b88231a
commit
5ff5cf6700
13
src/gram.c
13
src/gram.c
@@ -304,13 +304,14 @@ grammar_dump (FILE *out, const char *title)
|
||||
void
|
||||
grammar_rules_useless_report (const char *message)
|
||||
{
|
||||
rule_number r;
|
||||
for (r = 0; r < nrules ; ++r)
|
||||
if (!rules[r].useful)
|
||||
{
|
||||
complain_at (rules[r].location, Wother, "%s: ", message);
|
||||
if (warnings_flag & Wother)
|
||||
warnings w = Wother;
|
||||
if (warnings_flag & w)
|
||||
{
|
||||
rule_number r;
|
||||
for (r = 0; r < nrules ; ++r)
|
||||
if (!rules[r].useful)
|
||||
{
|
||||
complain_at (rules[r].location, w, "%s: ", message);
|
||||
rule_print (&rules[r], stderr);
|
||||
fflush (stderr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user