]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - opts.c
Implement [[deprecated]] general attribute, will mark functions as deprecated. Makin...
[xonotic/gmqcc.git] / opts.c
diff --git a/opts.c b/opts.c
index 269a69d0dc813bfec4b5a07c0e07651aefd37ee9..35f71146629900d249fe4fb4488ee53665ddcc16 100644 (file)
--- a/opts.c
+++ b/opts.c
@@ -54,11 +54,16 @@ static void opts_setdefault() {
     opts_set(opts.warn,  WARN_UNREACHABLE_CODE,          true);
     opts_set(opts.warn,  WARN_CPP,                       true);
     opts_set(opts.warn,  WARN_UNKNOWN_ATTRIBUTE,         true);
+    opts_set(opts.warn,  WARN_RESERVED_NAMES,            true);
+    opts_set(opts.warn,  WARN_UNINITIALIZED_CONSTANT,    true);
+    opts_set(opts.warn,  WARN_UNINITIALIZED_GLOBAL,      false);
+    opts_set(opts.warn,  WARN_DEPRECATED,                true);
     /* flags */
     opts_set(opts.flags, ADJUST_VECTOR_FIELDS,           true);
     opts_set(opts.flags, FTEPP,                          false);
     opts_set(opts.flags, FTEPP_PREDEFS,                  false);
     opts_set(opts.flags, CORRECT_TERNARY,                true);
+    opts_set(opts.flags, BAIL_ON_WERROR,                 true);
 }
 
 void opts_init(const char *output, int standard, size_t arraysize) {