Tweak error message: Avoid printing null pointer string.
authorChristoph Mallon <christoph.mallon@gmx.de>
Thu, 1 Jan 2009 20:12:42 +0000 (20:12 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Thu, 1 Jan 2009 20:12:42 +0000 (20:12 +0000)
[r25029]

parser.c

index b5a0136..f2d9a36 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -4159,8 +4159,8 @@ static void semantic_parameter_incomplete(const entity_t *entity)
        type_t *type = skip_typeref(entity->declaration.type);
        if (is_type_incomplete(type)) {
                errorf(&entity->base.source_position,
-                      "parameter '%Y' has incomplete type '%T'", entity->base.symbol,
-                      entity->declaration.type);
+                               "parameter '%#T' has incomplete type",
+                               entity->declaration.type, entity->base.symbol);
        }
 }