mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-12-03 17:11:57 +00:00
Enable it for gmqcc and fteqcc modes.
This commit is contained in:
parent
7e76b42f11
commit
51eb94f251
1 changed files with 2 additions and 0 deletions
2
main.c
2
main.c
|
@ -176,6 +176,7 @@ static bool options_parse(int argc, char **argv) {
|
|||
opts_set(opts.werror, WARN_INVALID_PARAMETER_COUNT, true);
|
||||
opts_set(opts.werror, WARN_MISSING_RETURN_VALUES, true);
|
||||
opts_set(opts.flags, EXPRESSIONS_FOR_BUILTINS, true);
|
||||
opts_set(opts.warn, WARN_BREAKDEF, true);
|
||||
|
||||
|
||||
OPTS_OPTION_U32(OPTION_STANDARD) = COMPILER_GMQCC;
|
||||
|
@ -196,6 +197,7 @@ static bool options_parse(int argc, char **argv) {
|
|||
opts_set(opts.flags, ASSIGN_FUNCTION_TYPES, true);
|
||||
opts_set(opts.flags, CORRECT_TERNARY, false);
|
||||
opts_set(opts.warn, WARN_TERNARY_PRECEDENCE, true);
|
||||
opts_set(opts.warn, WARN_BREAKDEF, true);
|
||||
|
||||
OPTS_OPTION_U32(OPTION_STANDARD) = COMPILER_FTEQCC;
|
||||
|
||||
|
|
Loading…
Reference in a new issue