public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: David Malcolm <dmalcolm@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r14-4668] diagnostics: fix missing initialization of context->extra_output_kind
Date: Mon, 16 Oct 2023 23:03:34 +0000 (GMT)	[thread overview]
Message-ID: <20231016230334.2F3593858D33@sourceware.org> (raw)

https://gcc.gnu.org/g:f8644b678285cf420219859a4384490d5947b731

commit r14-4668-gf8644b678285cf420219859a4384490d5947b731
Author: David Malcolm <dmalcolm@redhat.com>
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 <dmalcolm@redhat.com>

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"))

                 reply	other threads:[~2023-10-16 23:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231016230334.2F3593858D33@sourceware.org \
    --to=dmalcolm@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).