From: David Malcolm Date: Mon, 16 Oct 2023 23:02:34 +0000 (-0400) Subject: diagnostics: fix missing initialization of context->extra_output_kind X-Git-Tag: basepoints/gcc-15~5471 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8644b678285cf420219859a4384490d5947b731;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/diagnostic.cc b/gcc/diagnostic.cc index 9c15f0d8c50a..03637459c56c 100644 --- a/gcc/diagnostic.cc +++ b/gcc/diagnostic.cc @@ -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"))