summaryrefslogtreecommitdiff
path: root/src/strgen/strgen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/strgen/strgen.cpp')
-rw-r--r--src/strgen/strgen.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/strgen/strgen.cpp b/src/strgen/strgen.cpp
index 68002cc3f..025f9406d 100644
--- a/src/strgen/strgen.cpp
+++ b/src/strgen/strgen.cpp
@@ -46,7 +46,11 @@ void CDECL strgen_warning(const char *s, ...)
va_start(va, s);
vseprintf(buf, lastof(buf), s, va);
va_end(va);
- fprintf(stderr, LINE_NUM_FMT("warning"), _file, _cur_line, buf);
+ if (_show_todo > 0) {
+ fprintf(stderr, LINE_NUM_FMT("warning"), _file, _cur_line, buf);
+ } else {
+ fprintf(stderr, LINE_NUM_FMT("info"), _file, _cur_line, buf);
+ }
_warnings++;
}