Avoid printing two more possible null pointers.
authorChristoph Mallon <christoph.mallon@gmx.de>
Thu, 1 Jan 2009 20:43:53 +0000 (20:43 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Thu, 1 Jan 2009 20:43:53 +0000 (20:43 +0000)
[r25030]

parser.c

index f2d9a36..171b723 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -4723,7 +4723,7 @@ static type_t *semantic_parameter(const source_position_t *pos,
        type = automatic_type_conversion(type);
 
        if (specifiers->is_inline && is_type_valid(type)) {
-               errorf(pos, "parameter '%Y' declared 'inline'", symbol);
+               errorf(pos, "parameter '%#T' declared 'inline'", type, symbol);
        }
 
        /* ยง6.9.1:6  The declarations in the declaration list shall contain
@@ -4733,7 +4733,7 @@ static type_t *semantic_parameter(const source_position_t *pos,
                        specifiers->storage_class != STORAGE_CLASS_NONE   &&
                        specifiers->storage_class != STORAGE_CLASS_REGISTER)
           ) {
-               errorf(pos, "invalid storage class for parameter '%Y'", symbol);
+               errorf(pos, "invalid storage class for parameter '%#T'", type, symbol);
        }
 
        /* delay test for incomplete type, because we might have (void)