-/* Outputs FORMAT with as a warning for input I. */
-static void
-data_warning (const struct data_in *i, const char *format, ...)
-{
- va_list args;
- struct msg m;
- struct string text;
-
- ds_init_empty (&text);
- ds_put_char (&text, '(');
- ds_put_format (&text, _("%s field) "), fmt_name (i->format));
-
- va_start (args, format);
- ds_put_vformat (&text, format, args);
- va_end (args);
-
- m.category = MSG_C_DATA;
- m.severity = MSG_S_WARNING;
- m.text = ds_cstr (&text);
- m.where.file_name = NULL;
- m.where.line_number = 0;
- m.where.first_column = i->first_column;
- m.where.last_column = i->last_column;
-
- msg_emit (&m);
-}
-