diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2013-12-29 08:47:51 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2013-12-29 08:47:51 (GMT) |
commit | 744d1ca52e25dfa9e3d656056d87ed7cb6320585 (patch) | |
tree | 4829b62cf252449983b94d46c0cf167d3442c62e /src/message.cpp | |
parent | 2912829ca5bced897a2c063d1883b9cfd39d3bd9 (diff) | |
download | Doxygen-744d1ca52e25dfa9e3d656056d87ed7cb6320585.zip Doxygen-744d1ca52e25dfa9e3d656056d87ed7cb6320585.tar.gz Doxygen-744d1ca52e25dfa9e3d656056d87ed7cb6320585.tar.bz2 |
More work on the template and context mechanisms
Diffstat (limited to 'src/message.cpp')
-rw-r--r-- | src/message.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/message.cpp b/src/message.cpp index dd3549a..ff5dac2 100644 --- a/src/message.cpp +++ b/src/message.cpp @@ -13,7 +13,6 @@ * */ -#include <stdarg.h> #include <stdio.h> #include <qdatetime.h> #include "config.h" @@ -22,6 +21,7 @@ #include "doxygen.h" #include "portable.h" #include "filedef.h" +#include "message.h" static QCString outputFormat; static const char *warning_str = "warning: "; @@ -110,7 +110,7 @@ void msg(const char *fmt, ...) va_list args; va_start(args, fmt); vfprintf(stdout, fmt, args); - va_end(args); + va_end(args); } } @@ -172,6 +172,11 @@ void warn(const char *file,int line,const char *fmt, ...) va_end(args); } +void warn(const char *file,int line,const char *fmt,va_list args) +{ + do_warn("WARNINGS", file, line, warning_str, fmt, args); +} + void warn_simple(const char *file,int line,const char *text) { if (!Config_getBool("WARNINGS")) return; // warning type disabled |