add a hint about -fvariadic-args to -Wvariadic-function

This commit is contained in:
Wolfgang Bumiller 2013-01-15 11:35:18 +01:00
parent b208c1a49f
commit ee7d45f492

View file

@ -3805,7 +3805,7 @@ static bool parse_function_body(parser_t *parser, ast_value *var)
if (!OPTS_FLAG(VARIADIC_ARGS) && var->expression.flags & AST_FLAG_VARIADIC) {
if (parsewarning(parser, WARN_VARIADIC_FUNCTION,
"variadic function with implementation will not be able to access additional parameters"))
"variadic function with implementation will not be able to access additional parameters (try -fvariadic-args)"))
{
return false;
}