Fix incorrect format check warnings.
authorChristoph Mallon <christoph.mallon@gmx.de>
Mon, 2 Jun 2008 15:07:02 +0000 (15:07 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Mon, 2 Jun 2008 15:07:02 +0000 (15:07 +0000)
[r19943]

parser.c

index c007479..51e5bdd 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -5890,8 +5890,6 @@ static expression_t *parse_call_expression(unsigned precedence,
                }
        }
 
-       check_format(&result->call);
-
        /* do default promotion */
        for( ; argument != NULL; argument = argument->next) {
                type_t *type = argument->expression->base.type;
@@ -5902,6 +5900,8 @@ static expression_t *parse_call_expression(unsigned precedence,
                        = create_implicit_cast(argument->expression, type);
        }
 
+       check_format(&result->call);
+
        return result;
 end_error:
        return create_invalid_expression();