mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-18 22:31:36 +00:00
add a hint about -fvariadic-args to -Wvariadic-function
This commit is contained in:
parent
b208c1a49f
commit
ee7d45f492
1 changed files with 1 additions and 1 deletions
2
parser.c
2
parser.c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue