From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id C414A3858C30 for ; Mon, 2 Oct 2023 16:33:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C414A3858C30 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1696264394; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lOyPDZbuG4ei9CQlj5KRCdCvFXPR8/hBnE4VpxZBgbA=; b=I4K8uHzxp4KfVPTD4EaDGeTifUczhqDTBDe37kiU5PQUfS+JSTUlu8Ekr3XQj5gDDtze00 jccz5n3H+PaGGETgJi4BQFLemP6mIKBmebBPKgbv5xwSHBxlfA1AqgudGV11THKPNZXWEn ljdwWiPpw7r0WRY3Py3EwqlKQiO9I8c= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-466-WrELB7IsNRGX9Vh-SW-Ilw-1; Mon, 02 Oct 2023 12:33:13 -0400 X-MC-Unique: WrELB7IsNRGX9Vh-SW-Ilw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C338E29AB40E for ; Mon, 2 Oct 2023 16:33:12 +0000 (UTC) Received: from t14s.localdomain.com (unknown [10.22.18.119]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9C71540C2064; Mon, 2 Oct 2023 16:33:12 +0000 (UTC) From: David Malcolm To: gcc-patches@gcc.gnu.org Cc: David Malcolm Subject: [pushed] diagnostics: fix missing init of set_locations_cb Date: Mon, 2 Oct 2023 12:33:08 -0400 Message-Id: <20231002163308.4034749-1-dmalcolm@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-10.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu. Pushed to trunk as r14-4366-gc64693fb885f21. gcc/ChangeLog: * diagnostic.cc (diagnostic_initialize): Initialize set_locations_cb to nullptr. --- 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; -- 2.26.3