-std=qcc now warns about variadic functions via -Wextensions

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-08-23 11:33:50 +02:00
parent f3b652bfce
commit 412446f42e

View file

@ -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;
}