From e927351156e5964091a1d086ac782d3ce0b87982 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 30 Nov 2002 09:52:11 +0000 Subject: [PATCH] (grammar_current_rule_check): Warn about type clashes instead of complaining. --- src/reader.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/reader.c b/src/reader.c index 02d98b3..7d2c8c7 100644 --- a/src/reader.c +++ b/src/reader.c @@ -260,14 +260,14 @@ grammar_current_rule_check (void) { const char *rhs_type = first_rhs->type_name ? first_rhs->type_name : ""; if (!STRUNIQ_EQ (lhs_type, rhs_type)) - complain_at (current_rule->location, - _("type clash on default action: <%s> != <%s>"), - lhs_type, rhs_type); + warn_at (current_rule->location, + _("type clash on default action: <%s> != <%s>"), + lhs_type, rhs_type); } /* Warn if there is no default for $$ but we need one. */ else - complain_at (current_rule->location, - _("empty rule for typed nonterminal, and no action")); + warn_at (current_rule->location, + _("empty rule for typed nonterminal, and no action")); } -- 2.7.4