From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2209) id 2F3593858D33; Mon, 16 Oct 2023 23:03:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2F3593858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697497414; bh=nfbaNFiIaEqnf7GL/q1zuJPPDawFyyYDxfO+4TiWqCI=; h=From:To:Subject:Date:From; b=lIkfGvgxYu4kMU0iVhYp9IDqhShoJnAm3mGv8rkS+nObwchmolrFDX7vEyW/cpxH5 cjJcJONbJ0IOL4QX0o+mUNpVq5jQXdML5lix+PrPCSmZj+BK+zvE0U3nTmZi4H62Ho 76F36zdFREBLTLgkL5ZL0joLGNkJz/S+l8eQ2frg= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: David Malcolm To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-4668] diagnostics: fix missing initialization of context->extra_output_kind X-Act-Checkin: gcc X-Git-Author: David Malcolm X-Git-Refname: refs/heads/master X-Git-Oldrev: 1a64156c7e25813afa8d4d8bbeb0590cad91cf55 X-Git-Newrev: f8644b678285cf420219859a4384490d5947b731 Message-Id: <20231016230334.2F3593858D33@sourceware.org> Date: Mon, 16 Oct 2023 23:03:34 +0000 (GMT) List-Id: https://gcc.gnu.org/g:f8644b678285cf420219859a4384490d5947b731 commit r14-4668-gf8644b678285cf420219859a4384490d5947b731 Author: David Malcolm Date: Mon Oct 16 19:02:34 2023 -0400 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: --- gcc/diagnostic.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"))