diff options
Diffstat (limited to 'src/message.cpp')
-rw-r--r-- | src/message.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/message.cpp b/src/message.cpp index 984a00f..e107139 100644 --- a/src/message.cpp +++ b/src/message.cpp @@ -161,7 +161,7 @@ static void format_warn(const char *file,int line,const char *text) } } -static void handle_warn_as_error(void) +static void handle_warn_as_error() { static bool warnAsError = Config_getBool(WARN_AS_ERROR); if (warnAsError) @@ -279,6 +279,12 @@ void term(const char *fmt, ...) exit(1); } +void warn_flush() +{ + fflush(warnFile); +} + + void printlex(int dbg, bool enter, const char *lexName, const char *fileName) { const char *enter_txt = "entering"; |