diagnostics: fix missing initialization of context->extra_output_kind

gcc/ChangeLog:
	* diagnostic.cc (diagnostic_initialize): Ensure
	context->extra_output_kind is initialized.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
This commit is contained in:
David Malcolm 2023-10-16 19:02:34 -04:00
parent 1a64156c7e
commit f8644b6782

View file

@ -204,7 +204,7 @@ diagnostic_initialize (diagnostic_context *context, int n_opts)
context->m_source_printing.min_margin_width = 0;
context->m_source_printing.show_ruler_p = false;
context->report_bug = false;
context->extra_output_kind = EXTRA_DIAGNOSTIC_OUTPUT_none;
if (const char *var = getenv ("GCC_EXTRA_DIAGNOSTIC_OUTPUT"))
{
if (!strcmp (var, "fixits-v1"))