- set_diagnostic_context (&dc, msgid, &ap, input_filename, lineno,
- !flag_isoc99 || !flag_pedantic_errors);
- report_diagnostic (&dc);
- VA_CLOSE (ap);
+void
+pedwarn_c90 (const char *gmsgid, ...)
+{
+ diagnostic_info diagnostic;
+ va_list ap;
+
+ va_start (ap, gmsgid);
+ diagnostic_set_info (&diagnostic, gmsgid, &ap, input_location,
+ flag_isoc99 ? DK_WARNING : pedantic_error_kind ());
+ report_diagnostic (&diagnostic);
+ va_end (ap);