From: Wolfgang Bumiller Date: Thu, 20 Dec 2012 15:55:00 +0000 (+0100) Subject: Fix condition on whether or not to print 'error' or 'warning' X-Git-Tag: 0.1.9~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5b98011f5f862c22aae342f4020985464e20b666;p=xonotic%2Fgmqcc.git Fix condition on whether or not to print 'error' or 'warning' --- diff --git a/conout.c b/conout.c index 2c9962d..169aaa7 100644 --- 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); }