From 412446f42ebade78b38153d93f0135b15a48f01e Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Thu, 23 Aug 2012 11:33:50 +0200 Subject: [PATCH] -std=qcc now warns about variadic functions via -Wextensions --- parser.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.39.2