From: Wolfgang (Blub) Bumiller Date: Thu, 23 Aug 2012 09:33:50 +0000 (+0200) Subject: -std=qcc now warns about variadic functions via -Wextensions X-Git-Tag: 0.1-rc1~77 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=412446f42ebade78b38153d93f0135b15a48f01e;p=xonotic%2Fgmqcc.git -std=qcc now warns about variadic functions via -Wextensions --- diff --git a/parser.c b/parser.c index 79b1d40..0773026 100644 --- a/parser.c +++ b/parser.c @@ -343,6 +343,10 @@ static ast_value *parser_parse_type(parser_t *parser, int basetype, bool *isfunc parseerror(parser, "`...` must be the last parameter of a variadic function declaration"); goto on_error; } + if (opts_standard == COMPILER_QCC) { + if (parsewarning(parser, WARN_EXTENSIONS, "variadic functions are not available in this standard")) + goto on_error; + } break; }