From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 956173858C98; Mon, 25 Dec 2023 11:50:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 956173858C98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1703505007; bh=09pZNttDmlzUm3L1s3E8OKijnfs2YuUojKuWX/Gft/8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=VNXCC8SxOjm/npdnol/7OKUrqanyJJXH2X7BpLDywTiEEfi/VKn5aJpGi4SwUeNYh rnqm8TDkhJl1cTX9ZgcFxzcZBh3q1DC5NF8H9zGIKdf5qvwLn0nZrIrAmLgAoaoKIi 0FKFFAGNSa5gVeJQb0QFRMXKEF4NMH3NmDcL65aM= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug build/31150] [gdb/build] m_uiout may be used uninitialized in this function [-Wmaybe-uninitialized] Date: Mon, 25 Dec 2023 11:50:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: build X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31150 --- Comment #4 from Tom de Vries --- (In reply to Tom Tromey from comment #3) > Which compiler is this? > I think this was https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D80635 That particular PR is fixed in gcc 11.1, and this is with gcc 11.4 on ubuntu 22.04. Anyway, this fixes it as well: ... diff --git a/gdb/ui-out.h b/gdb/ui-out.h index 07567a1df35..ce3bc86b651 100644 --- a/gdb/ui-out.h +++ b/gdb/ui-out.h @@ -406,7 +406,10 @@ class ui_out_emit_type ~ui_out_emit_type () { + DIAGNOSTIC_PUSH + DIAGNOSTIC_IGNORE ("-Wmaybe-uninitialized") m_uiout->end (Type); + DIAGNOSTIC_POP } DISABLE_COPY_AND_ASSIGN (ui_out_emit_type); ... --=20 You are receiving this mail because: You are on the CC list for the bug.=