]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Fix condition on whether or not to print 'error' or 'warning'
authorWolfgang Bumiller <blub@speed.at>
Thu, 20 Dec 2012 15:55:00 +0000 (16:55 +0100)
committerWolfgang Bumiller <blub@speed.at>
Thu, 20 Dec 2012 15:55:00 +0000 (16:55 +0100)
conout.c

index 2c9962d4a50329cc588e4f14934150c6ed35eca6..169aaa74fd70aa8825c1640dbe6d9486d426a07f 100644 (file)
--- a/conout.c
+++ b/conout.c
@@ -406,7 +406,7 @@ bool GMQCC_WARN vcompile_warning(lex_ctx ctx, int warntype, const char *fmt, va_
     else
         ++compile_warnings;
 
-    con_vprintmsg_c(lvl, ctx.file, ctx.line, (opts.werror ? "error" : "warning"), fmt, ap, warn_name);
+    con_vprintmsg_c(lvl, ctx.file, ctx.line, ((lvl == LVL_ERROR) ? "error" : "warning"), fmt, ap, warn_name);
 
     return OPTS_WERROR(warntype);
 }