Be more consistent, when talking about types in error messages.
authorChristoph Mallon <christoph.mallon@gmx.de>
Tue, 18 Nov 2008 22:04:32 +0000 (22:04 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Tue, 18 Nov 2008 22:04:32 +0000 (22:04 +0000)
[r23785]

parser.c

index 0ba4b36..a6430d2 100644 (file)
--- 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);
 }