From: Christoph Mallon Date: Thu, 1 Jan 2009 20:43:53 +0000 (+0000) Subject: Avoid printing two more possible null pointers. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=a9d7d38e185e84065ca55ef2231cf90fc2202d9b;p=cparser Avoid printing two more possible null pointers. [r25030] --- diff --git a/parser.c b/parser.c index f2d9a36..171b723 100644 --- 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)