From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 0864D3858407 for ; Thu, 7 Apr 2022 16:39:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0864D3858407 Received: from fencepost.gnu.org ([2001:470:142:3::e]:51710) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncVAL-0007YG-0F; Thu, 07 Apr 2022 12:39:25 -0400 Received: from [87.69.77.57] (port=4489 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncVAK-0003fz-DC; Thu, 07 Apr 2022 12:39:24 -0400 Date: Thu, 07 Apr 2022 19:39:34 +0300 Message-Id: <83o81cc0ft.fsf@gnu.org> From: Eli Zaretskii To: Tom Tromey Cc: gdb-patches@sourceware.org, simon.marchi@polymtl.ca, brobecker@adacore.com In-Reply-To: <87a6cwan3a.fsf@tromey.com> (message from Tom Tromey on Thu, 07 Apr 2022 10:13:13 -0600) Subject: Re: GDB 12.0.90 available for testing References: <20220320055815.2A90FA4D6C@takamaka.home> <83sfr4a93r.fsf@gnu.org> <83k0cg9dki.fsf@gnu.org> <87a6cwan3a.fsf@tromey.com> X-Spam-Status: No, score=2.0 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_BARRACUDACENTRAL, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Apr 2022 16:39:28 -0000 > From: Tom Tromey > Cc: Simon Marchi , Eli Zaretskii , > brobecker@adacore.com > Date: Thu, 07 Apr 2022 10:13:13 -0600 > > >> > target/waitstatus.h: In function 'void stop_all_threads()': > >> > target/waitstatus.h:175:13: warning: 'ws.target_waitstatus::m_value' may be used uninitialized in this function [-Wmaybe-uninitialized] > >> > 175 | m_value = other.m_value; > >> > | ~~~~~~~~^~~~~~~~~~~~~~~ > > Eli> Maybe we should initialize ws::m_value, just to shut up the compiler? > Eli> Because GDB 12 compiles cleanly other than this warning. > > I have a simple patch for this that I will send in a bit. > > We patched around this same issue in gdb::optional and in other spots, > so doing it here seems fine as well. Thanks.