mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-19 06:40:49 +00:00
-std=qcc now warns about variadic functions via -Wextensions
This commit is contained in:
parent
f3b652bfce
commit
412446f42e
1 changed files with 4 additions and 0 deletions
4
parser.c
4
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue