From: Dale Weiler Date: Thu, 29 Aug 2013 11:56:22 +0000 (-0400) Subject: Make -fshort-logic -funtyped-nil -fvariadic-args default for -std=gmqcc X-Git-Tag: 0.3.5~116 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c8b4eac6184e0265919e8278d39ab879390bd291;p=xonotic%2Fgmqcc.git Make -fshort-logic -funtyped-nil -fvariadic-args default for -std=gmqcc --- diff --git a/main.c b/main.c index 652ee61..eab582d 100644 --- a/main.c +++ b/main.c @@ -165,6 +165,9 @@ static bool options_parse(int argc, char **argv) { opts_set(opts.flags, ADJUST_VECTOR_FIELDS, true); opts_set(opts.flags, CORRECT_LOGIC, true); + opts_set(opts.flags, SHORT_LOGIC, true); + opts_set(opts.flags, UNTYPED_NIL, true); + opts_set(opts.flags, VARIADIC_ARGS, true); opts_set(opts.flags, FALSE_EMPTY_STRINGS, false); opts_set(opts.flags, TRUE_EMPTY_STRINGS, true); opts_set(opts.flags, LOOP_LABELS, true); @@ -176,6 +179,7 @@ static bool options_parse(int argc, char **argv) { opts_set(opts.warn, WARN_BREAKDEF, true); + OPTS_OPTION_U32(OPTION_STANDARD) = COMPILER_GMQCC; } else if (!strcmp(argarg, "qcc")) {