]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - conout.c
Move some things around
[xonotic/gmqcc.git] / conout.c
index 80ec5e1a387499a4485892f28733e0303f4530d1..2f1eb9e25e369acbeaec9142c29737a91a62bd9f 100644 (file)
--- a/conout.c
+++ b/conout.c
@@ -197,7 +197,7 @@ static con_t console;
  * NOTE: This prevents colored output to piped stdout/err via isatty
  * checks.
  */
-static void con_enablecolor() {
+static void con_enablecolor(void) {
     if (console.handle_err == stderr || console.handle_err == stdout)
         console.color_err = !!(isatty(STDERR_FILENO));
     if (console.handle_out == stderr || console.handle_out == stdout)
@@ -327,6 +327,7 @@ int con_out(const char *fmt, ...) {
     return   ln;
 }
 
+#ifndef QCVM_EXECUTOR
 /*
  * Utility console message writes for lexer contexts.  These will allow
  * for reporting of file:line based on lexer context, These are used
@@ -445,3 +446,4 @@ bool GMQCC_WARN compile_warning(lex_ctx ctx, int warntype, const char *fmt, ...)
     va_end(ap);
     return r;
 }
+#endif