]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Make -fshort-logic -funtyped-nil -fvariadic-args default for -std=gmqcc
authorDale Weiler <killfieldengine@gmail.com>
Thu, 29 Aug 2013 11:56:22 +0000 (07:56 -0400)
committerDale Weiler <killfieldengine@gmail.com>
Thu, 29 Aug 2013 11:56:22 +0000 (07:56 -0400)
main.c

diff --git a/main.c b/main.c
index 652ee616c9e3d0faa6e0d2877ab46cd268d81789..eab582dc5cae10d3b19db19c697c7130a870f7ee 100644 (file)
--- 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")) {