From: Christoph Mallon Date: Tue, 18 Nov 2008 22:04:32 +0000 (+0000) Subject: Be more consistent, when talking about types in error messages. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=fee559c8e58c8c01b85e20dac7d2010939c88d1a;p=cparser Be more consistent, when talking about types in error messages. [r23785] --- diff --git a/parser.c b/parser.c index 0ba4b36..a6430d2 100644 --- a/parser.c +++ b/parser.c @@ -4054,7 +4054,7 @@ static void semantic_parameter(declaration_t *declaration) * a function declarator that is part of a definition of that * function shall not have incomplete type. */ if (is_type_incomplete(skip_typeref(type))) { - errorf(pos, "parameter '%#T' is of incomplete type", + errorf(pos, "parameter '%#T' has incomplete type", orig_type, declaration->base.symbol); } } @@ -5185,7 +5185,7 @@ static void check_variable_type_complete(entity_t *ent) if (!is_type_incomplete(skip_typeref(type))) return; - errorf(&ent->base.source_position, "variable '%#T' is of incomplete type", + errorf(&ent->base.source_position, "variable '%#T' has incomplete type", type, ent->base.symbol); }