From 0252c0a47a4f7930fb50faf2407827ada6c78a6d Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Fri, 30 Nov 2012 14:46:56 +0100 Subject: [PATCH] Fix indentation of compile_warning --- con.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/con.c b/con.c index f667e6d..cd1e145 100644 --- a/con.c +++ b/con.c @@ -379,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; } -- 2.39.2