]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Enable it for gmqcc and fteqcc modes.
authorDale Weiler <killfieldengine@gmail.com>
Mon, 17 Jun 2013 20:13:21 +0000 (20:13 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Mon, 17 Jun 2013 20:13:21 +0000 (20:13 +0000)
main.c

diff --git a/main.c b/main.c
index 3dac2e1973cfe1bfe0a17b7359ba6e3549b515b7..98de0e9176b4e9924e07757b536b41a6bee2446b 100644 (file)
--- a/main.c
+++ b/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;