From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.freebsd.org (mx2.freebsd.org [96.47.72.81]) by sourceware.org (Postfix) with ESMTPS id B866E3858404 for ; Tue, 26 Sep 2023 15:58:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B866E3858404 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=FreeBSD.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits)) (Client CN "mx1.freebsd.org", Issuer "R3" (verified OK)) by mx2.freebsd.org (Postfix) with ESMTPS id 4Rw4DL2g43z3gS0; Tue, 26 Sep 2023 15:58:58 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rw4DL1q2Cz4Y0K; Tue, 26 Sep 2023 15:58:58 +0000 (UTC) (envelope-from jhb@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695743938; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FDzYMemkDaj48pEz6WqDWwd4HyFCusILIr0rq55TwHA=; b=wwVnk/C2iqSezoMKK0ORdx2RBI8RlA52IsADC1w6G2gVteYZO0tmtD/Woqm9SVvXJCXWH6 H5poVxh7R8428+3OIl9T7BRiMUYqlqZuS9opy/p1g6yYFIZsFtcilx5S95El7keAi/jNrW VKfYlxfKSAGjzGwR1AWyaRp0BSPjkOirPMlIFdx/6VVtFM2m5pgTJTSF+SBH0Agea7Mq92 4wr8l2lfC8tCNerYiqVXfFU6aQK/IKGmgrRWtxAHltkXLz6BxxdkIKdKJHgewnIUjCneyH cjIi5cRixnRM3ZKIF8motHgjelEZSL5Bu8+1WvjIvKoECsXmVTiLMa0e3/jO+A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695743938; a=rsa-sha256; cv=none; b=wJOEz0BOhVmq0rhYzPMV6FB9CiqnoNMS5TvsAehl6mu/NiHrRImrJriiF5LuNNyaUFfOso KdSHcG7oHKf2RFpUJ5i/Sixx+Kcry+PbuGsV9f736uTMFEpvRwwmRZ64wjsSGwoBAMwJds QHUTwWAbsyOxQc/9c3f5/Hpr5N0KKptKgJOTFjoV+5jZHY6EdwpDbtkuvdrRjOO6oe7P5D 3peGMF34HllZRuAtF3AI7cjDdBl5SWg/u71pUCXUPJ5lRlNoEnzk+aVNXD8EM6f0hlvLh6 mtw4dapJUzaWzAI3BFW2gyWHQVN64y9QjjPp7l/xjl0YqWe5szC6OFXyU2rl6g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695743938; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FDzYMemkDaj48pEz6WqDWwd4HyFCusILIr0rq55TwHA=; b=HgbBHJZ/lSCdpbylP7LFjLG384TTjmWVOVas05GuVOKZq5smRPHSN4vZsCU3+V1NSOcFRG sbd/MNWk1fTmvc3BFlSpeP6+MdACyWeue/tT3NmMajnK5MHxE7ucc2GZ6/hppWaaY8KS3S mTixc/lEpuL1K3YHcT+PZ5Ur5W7/9r5LnIRQkJtkMxJwyEG2hd1BNyVgdWHY52IJxC7PNV 5KQIS/CU/qViqHb+ac1eSKlogsnig5wfuyKYp7y8+ITA/WChxMwxsWfZlmSVCMOPoOa3ZM joRxLVzumrdOiPrew9DScKoQ1dK2f0QnoMMjVtbnq7ZNtiERtSBinwjkkI6iHQ== Received: from [IPV6:2601:648:8683:39a0:eccf:1992:2e64:f508] (unknown [IPv6:2601:648:8683:39a0:eccf:1992:2e64:f508]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Rw4DK5tLSzlJw; Tue, 26 Sep 2023 15:58:57 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Message-ID: <4e999754-d4cd-3a5f-8fc7-76559dcaa2cf@FreeBSD.org> Date: Tue, 26 Sep 2023 08:58:56 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [pushed] fbsd-nat: Fix build failure with GCC 12 Content-Language: en-US To: Enze Li , gdb-patches@sourceware.org References: From: John Baldwin In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,KAM_NUMSUBJECT,NICE_REPLY_A,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,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: On 9/26/23 2:20 PM, Enze Li wrote: > A user pointed out that the build failed on FreeBSD/amd64 with my last > commit. The problem is that I'm not using the proper way to tell the > compiler that the variable has been "used". This patch fixes this issue > as suggested by John. Pushed as obvious. > > Tested both on FreeBSD/amd64 and FreeBSD/aarch64 by rebuilding. > > Suggested-By: John Baldwin > --- > gdb/fbsd-nat.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c > index 81a77b3a60f..55a36f24025 100644 > --- a/gdb/fbsd-nat.c > +++ b/gdb/fbsd-nat.c > @@ -2094,7 +2094,7 @@ fbsd_nat_target::detach (inferior *inf, int from_tty) > } > #else > /* pacify gcc */ > - wptid = (void) null_ptid; > + (void) wptid; > #endif > sig = 0; > break; Thanks, but odd as I had fixed that locally and thought I had pushed that version with this fix. :-/ Not sure why I pushed the old version. -- John Baldwin