]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - conout.c
testsuite compiles on windows now (but doesn't work). Still need to implement bidire...
[xonotic/gmqcc.git] / conout.c
index 2c9962d4a50329cc588e4f14934150c6ed35eca6..ff012c72067fbb6d7a4e34d97ee3aebc88690121 100644 (file)
--- a/conout.c
+++ b/conout.c
@@ -110,7 +110,6 @@ static void win_fputs(char *str, FILE *h) {
     int icolor;
 
     int state;
-    int place;
 
     /* attributes */
     int intense  =  -1;
@@ -219,7 +218,7 @@ static int con_write(FILE *handle, const char *fmt, va_list va) {
         data[ln] = 0;
         vsprintf(data, fmt, va);
         if (GMQCC_IS_DEFINE(handle))
-            ln = win_fputs(data, handle);
+            win_fputs(data, handle);
         else
             ln = fputs(data, handle);
         free(data);
@@ -406,7 +405,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);
 }