X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=conout.c;h=2f1eb9e25e369acbeaec9142c29737a91a62bd9f;hp=687fdf499a9e590af16c6c90a4006187b3ca5b4f;hb=a9ab865add301e49390d1ebeabe350a6c9c4205c;hpb=b0a07695344c805381fdca64aac229ee98725130 diff --git a/conout.c b/conout.c index 687fdf4..2f1eb9e 100644 --- a/conout.c +++ b/conout.c @@ -21,7 +21,6 @@ * SOFTWARE. */ #include "gmqcc.h" -#include /* * isatty/STDERR_FILENO/STDOUT_FILNO @@ -198,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) @@ -328,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 @@ -446,3 +446,4 @@ bool GMQCC_WARN compile_warning(lex_ctx ctx, int warntype, const char *fmt, ...) va_end(ap); return r; } +#endif