Do not print warnings if ignore_warnings is set up.
@@ -842,6 +842,7 @@ static void warning (c2m_ctx_t c2m_ctx, pos_t pos, const char *format, ...) {
if ((f = c2m_options->message_file) == NULL) return;
n_warnings++;
+ if (!c2m_options->ignore_warnings_p) {
va_start (args, format);
print_pos (f, pos, TRUE);
fprintf (f, "warning -- ");
@@ -849,6 +850,7 @@ static void warning (c2m_ctx_t c2m_ctx, pos_t pos, const char *format, ...) {
va_end (args);
fprintf (f, "\n");
}
+}
#define TAB_STOP 8
