]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - con.c
Add whitespace to ternary-fte template so it matches (expected behaviour)
[xonotic/gmqcc.git] / con.c
diff --git a/con.c b/con.c
index c8c263460a1f9e5f06ab800b0d8dad6fa5df635f..cd1e145155453b26caf817ae8f724f41add05144 100644 (file)
--- a/con.c
+++ b/con.c
@@ -22,6 +22,9 @@
  */
 #include "gmqcc.h"
 
+uint32_t    opts_warn [1 + (COUNT_WARNINGS / 32)];
+bool        opts_werror   = false;
+
 /*
  * isatty/STDERR_FILENO/STDOUT_FILNO
  * + some other things likewise.
@@ -376,22 +379,22 @@ void compile_error(lex_ctx ctx, const char *msg, ...)
 
 bool GMQCC_WARN compile_warning(lex_ctx ctx, int warntype, const char *fmt, ...)
 {
-       va_list ap;
-       int lvl = LVL_WARNING;
+    va_list ap;
+    int lvl = LVL_WARNING;
 
     if (!OPTS_WARN(warntype))
         return false;
 
     if (opts_werror) {
         ++compile_errors;
-           lvl = LVL_ERROR;
-       }
-       else
+        lvl = LVL_ERROR;
+    }
+    else
         ++compile_warnings;
 
-       va_start(ap, fmt);
+    va_start(ap, fmt);
     con_vprintmsg(lvl, ctx.file, ctx.line, "warning", fmt, ap);
-       va_end(ap);
+    va_end(ap);
 
-       return opts_werror;
+    return opts_werror;
 }