public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-4366] diagnostics: fix missing init of set_locations_cb
@ 2023-10-02 16:25 David Malcolm
  0 siblings, 0 replies; only message in thread
From: David Malcolm @ 2023-10-02 16:25 UTC (permalink / raw)
  To: gcc-cvs

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

commit r14-4366-gc64693fb885f21fafa01d67c5d85e11942770a7c
Author: David Malcolm <dmalcolm@redhat.com>
Date:   Mon Oct 2 12:16:54 2023 -0400

    diagnostics: fix missing init of set_locations_cb
    
    gcc/ChangeLog:
            * diagnostic.cc (diagnostic_initialize): Initialize
            set_locations_cb to nullptr.
    
    Signed-off-by: David Malcolm <dmalcolm@redhat.com>

Diff:
---
 gcc/diagnostic.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/diagnostic.cc b/gcc/diagnostic.cc
index 00183b10700..28ab74ff23e 100644
--- a/gcc/diagnostic.cc
+++ b/gcc/diagnostic.cc
@@ -245,6 +245,7 @@ diagnostic_initialize (diagnostic_context *context, int n_opts)
   context->begin_group_cb = NULL;
   context->end_group_cb = NULL;
   context->final_cb = default_diagnostic_final_cb;
+  context->set_locations_cb = nullptr;
   context->ice_handler_cb = NULL;
   context->includes_seen = NULL;
   context->m_client_data_hooks = NULL;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-10-02 16:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-02 16:25 [gcc r14-4366] diagnostics: fix missing init of set_locations_cb David Malcolm

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