Fix condition on whether or not to print 'error' or 'warning'

This commit is contained in:
Wolfgang Bumiller 2012-12-20 16:55:00 +01:00
parent 6cd821d459
commit 5b98011f5f

View file

@ -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);
}