From nobody Tue Feb 10 17:02:55 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=quicinc.com ARC-Seal: i=1; a=rsa-sha256; t=1672935874; cv=none; d=zohomail.com; s=zohoarc; b=at5oBwxdU1CvQdt1OR1jzesf4UAKfhX5KXzNvSvUccwr7MAB1OL8EACrCsBBZ6RXv4oCbEAqcD7DU3iOOyG1m/4Jeiaat+dHWEGnoX3AJqwlPqf+HhdOLot5fuzlB0X7JE+Zn37BwNr3IxsmcusADj78i01Gs/R5TNZjMYbenOM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1672935874; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=K+DUb7UqjC7g3QamCSkA8iwHPAogjEO6oVO5EOWNJ1s=; b=bFKueDpdcNbZtdlYFQUE9KeSA5R0wCltzrJ6YECmT4FI7Luykm5XJZ3x+Oh4f9JyZeMa94vrFxREI4W/Lw6huz7kjCCJVluIX4vAF1TZRaEufWTkO8PznwwATJ1LCciqun8x09LxuY2Yxs1bOunYSvAXT9wM+4qoQSC/SLCjI0k= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 167293587437781.7079073611385; Thu, 5 Jan 2023 08:24:34 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pDT26-0005JD-6V; Thu, 05 Jan 2023 11:23:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pDT25-0005Hd-2I for qemu-devel@nongnu.org; Thu, 05 Jan 2023 11:23:57 -0500 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pDT23-0004za-Cx for qemu-devel@nongnu.org; Thu, 05 Jan 2023 11:23:56 -0500 Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 305CpSx0014283; Thu, 5 Jan 2023 16:23:51 GMT Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3mwxhk8dhr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 05 Jan 2023 16:23:51 +0000 Received: from pps.filterd (NALASPPMTA02.qualcomm.com [127.0.0.1]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 305GJRdt002336; Thu, 5 Jan 2023 16:23:49 GMT Received: from pps.reinject (localhost [127.0.0.1]) by NALASPPMTA02.qualcomm.com (PPS) with ESMTP id 3mte5kwc8p-1; Thu, 05 Jan 2023 16:23:49 +0000 Received: from NALASPPMTA02.qualcomm.com (NALASPPMTA02.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 305GNn7i006575; Thu, 5 Jan 2023 16:23:49 GMT Received: from hu-devc-lv-u18-c.qualcomm.com (hu-tsimpson-lv.qualcomm.com [10.47.235.220]) by NALASPPMTA02.qualcomm.com (PPS) with ESMTP id 305GNnP2006573; Thu, 05 Jan 2023 16:23:49 +0000 Received: by hu-devc-lv-u18-c.qualcomm.com (Postfix, from userid 47164) id 83B365000A7; Thu, 5 Jan 2023 08:23:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-type : content-transfer-encoding; s=qcppdkim1; bh=K+DUb7UqjC7g3QamCSkA8iwHPAogjEO6oVO5EOWNJ1s=; b=D/qtkoaR9601Fx/ySFC+7Ls8CJm0PXE5CtEiSEOHaX8rC+ZzHoUGiKnmeMcxmiX3gOOR oSeLBYiAyTvjER7rzz8pDANnjZYBggwR7gxNPJk819qLmVK2pMhxiwA+MIVye7XH3Rbv wwmJ5xmSpXUptMsrJXatnCkCV4MZTfADGgcxBth/BTVBoElvv5arvHmckbn/N/q0JqOG F4uDuFMBLWUHLkxV4FkJfi8UpL8iCNRJnZUCJMSrJwYeEi4FEnZsdPlk8jBArw/qLBVD ZLwOKHZATX42LL/5Mo/+QHm83MsEAAYDqH0DuZX75O5CGAn+4W20MFuObIClVCOongMB ew== From: Taylor Simpson To: qemu-devel@nongnu.org, alex.bennee@linaro.org Cc: tsimpson@quicinc.com, richard.henderson@linaro.org, philmd@linaro.org, ale@rev.ng, anjo@rev.ng, bcain@quicinc.com, quic_mathbern@quicinc.com Subject: [PATCH] linux-test.c: Remove unused but set variable Date: Thu, 5 Jan 2023 08:23:48 -0800 Message-Id: <20230105162348.16725-1-tsimpson@quicinc.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: liPxDGEgA4BBEl6GuGTkbQQm4EXBWyri X-Proofpoint-ORIG-GUID: liPxDGEgA4BBEl6GuGTkbQQm4EXBWyri X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-05_07,2023-01-05_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 priorityscore=1501 malwarescore=0 mlxlogscore=690 impostorscore=0 mlxscore=0 bulkscore=0 clxscore=1015 spamscore=0 phishscore=0 suspectscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301050129 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=tsimpson@qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @quicinc.com) X-ZM-MESSAGEID: 1672935875622100002 Some versions of clang will warn on this with -Wall Then, it will be an error with -Werror Signed-off-by: Taylor Simpson --- tests/tcg/multiarch/linux/linux-test.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/tcg/multiarch/linux/linux-test.c b/tests/tcg/multiarch/l= inux/linux-test.c index 5a2a4f2258..10943d5310 100644 --- a/tests/tcg/multiarch/linux/linux-test.c +++ b/tests/tcg/multiarch/linux/linux-test.c @@ -332,12 +332,11 @@ static void test_pipe(void) fd_set rfds, wfds; int fds[2], fd_max, ret; uint8_t ch; - int wcount, rcount; + int rcount; =20 chk_error(pipe(fds)); chk_error(fcntl(fds[0], F_SETFL, O_NONBLOCK)); chk_error(fcntl(fds[1], F_SETFL, O_NONBLOCK)); - wcount =3D 0; rcount =3D 0; for(;;) { FD_ZERO(&rfds); @@ -360,7 +359,6 @@ static void test_pipe(void) if (FD_ISSET(fds[1], &wfds)) { ch =3D 'a'; chk_error(write(fds[1], &ch, 1)); - wcount++; } } } --=20 2.17.1