From: Dale Weiler Date: Mon, 17 Jun 2013 20:13:21 +0000 (+0000) Subject: Enable it for gmqcc and fteqcc modes. X-Git-Tag: v0.3.0~105^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=51eb94f2510aba8bd3a5318750eb9fa7244932e2;p=xonotic%2Fgmqcc.git Enable it for gmqcc and fteqcc modes. --- diff --git a/main.c b/main.c index 3dac2e1..98de0e9 100644 --- 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;