From: Dale Weiler Date: Thu, 31 Jul 2014 17:13:43 +0000 (-0400) Subject: Set name for is_varargs too. X-Git-Tag: xonotic-v0.8.1~9^2~25 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d5690074e194fbfe793ecb5f3f68c3e9c530d3cb;p=xonotic%2Fgmqcc.git Set name for is_varargs too. --- diff --git a/parser.c b/parser.c index c45f68e..d694da4 100644 --- a/parser.c +++ b/parser.c @@ -4669,6 +4669,7 @@ static ast_value *parse_parameter_list(parser_t *parser, ast_value *var) } if (parser->tok == TOKEN_IDENT) { argcounter = util_strdup(parser_tokval(parser)); + ast_value_set_name(param, argcounter); if (!parser_next(parser) || parser->tok != ')') { parseerror(parser, "`...` must be the last parameter of a variadic function declaration"); goto on_error;