Received: by 2002:a17:906:cd17:b0:9b2:89ee:1eb8 with SMTP id oz23csp1860584ejb; Mon, 9 Oct 2023 03:11:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFz/5xvycizfB71EC0MVeosgN9FeQkI7cKOEiKQT3EAROtcMnutLADvo+SHJVEcLllGJaaL X-Received: by 2002:a05:622a:199d:b0:418:ff8:3833 with SMTP id u29-20020a05622a199d00b004180ff83833mr18672627qtc.52.1696846289796; Mon, 09 Oct 2023 03:11:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696846289; cv=none; d=google.com; s=arc-20160816; b=Pbeiwnx2y0kpEwECoheYMYCjU+1NEw3dyehIKPOTG3NsyfgUb5cAkT4NeDQb8Xh/so 5Gm4piPvKS6RTZ28VhkeTfhh7xGzaiovwuq76nPWeBvdQfF92YH6l9Hh3zvTvxjAP6yd EqNjR8IJq1HdJ/TJzLID0TTsdPFIQh4XbdBhHekMsc2bYhX3A1f+Tlx8nlW+5r6GfrxQ 4Ap4FhKu1BiFP0c+mrXBet8YzqnU3Qq0n4/13G4MS/5blPrTTUI+RCzDMbAHbCDCxBR6 C28LDCZJxLYqQGEF6vhx/FktdZ2iVd6a/p4/PF/ayZm7KyoTVc/RjbSRuyvk+vSNAtxl UCpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:dkim-signature; bh=qTN9vsIsSJwyrRFyywPHlqV3v5to6QoTYdEv9vWc6Pw=; fh=GODe2C7xi+fUey8ePPuVPrKktDdgCUIsZGVqKpdfOnQ=; b=XKQb4MYrS9RTcvuxo+x4Mz4OgJQqEbzLH60BPx3HwyIk9ytFfZROSwnXfFNy5hEnT5 Ag/PCYl3XF//WGLsccMGPZBJ7C9YV32i46ek9Cp07fYNYZau2RcpFmQajTXOI50pTn4i zxxs46j03Opz4AhPa21dfD/qGUwBjYVshpVxHO0eLWQTHc28nhZ/m7onxOps0jk4ApCX OywqFrgdNNPFTTRNfDZfYUgmLxijT9oxSTbGzA+6oVio/PO6jdsQdjSA71ZFGQMHEOAm pw9VsbCUDprWd6vsqzzOwWsoZUOou1ZrLastbs8qZajmBp1ALrNeI64qdHKLYp6Uu0u9 MFJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=fFVHMscb; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id w2-20020a05622a190200b004196fd5c552si5734515qtc.558.2023.10.09.03.11.29 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Oct 2023 03:11:29 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=fFVHMscb; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qpnEK-0004sr-NZ; Mon, 09 Oct 2023 06:11:16 -0400 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 1qpnED-0004q1-KT; Mon, 09 Oct 2023 06:11:09 -0400 Received: from fanzine.igalia.com ([178.60.130.6] helo=fanzine2.igalia.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qpnEB-0001vq-4a; Mon, 09 Oct 2023 06:11:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=qTN9vsIsSJwyrRFyywPHlqV3v5to6QoTYdEv9vWc6Pw=; b=fFVHMscb8u7ttHfYHlgXwrJIQh pjr+EisoImRUn7TMhg57a1J74oA2qAiTtbfXH5Z34KA8Iv2GKyDb0Z870NV/x5R1Q1LsyvauQR3oA 5Na/Fl8vioxwyOwKqNQ9J1yZaSREaDo0Jh1XCx3aRB8qCBlOURj9Z9BQQJBd1KwVfS/c0QIwdJcJn 3o+uaiI8SRW9Jcriw5I5vRsnehZk72aUJYrCT1dfY3kpseZY/RDiUSesv3lawzccCTVYHLEQ2DRpf AZ4fxU9WAyn1so9TjQiubooPuPTwvZH3NbEBM26bVpiAbDTQcajqcJ6SsA5XqyDS3CzZfitYV4O+0 98E2vrKA==; Received: from maestria.local.igalia.com ([192.168.10.14] helo=mail.igalia.com) by fanzine2.igalia.com with esmtps (Cipher TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1qpnDx-00G2Un-DD; Mon, 09 Oct 2023 12:10:53 +0200 Received: from gate.service.igalia.com ([192.168.21.52]) by mail.igalia.com with esmtp (Exim) id 1qpnDv-000o2x-B0; Mon, 09 Oct 2023 12:10:53 +0200 Received: from berto by gate.service.igalia.com with local (Exim 4.96) (envelope-from ) id 1qpnDv-006E3C-0a; Mon, 09 Oct 2023 10:10:51 +0000 From: Alberto Garcia To: Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Hao Wu , Kevin Wolf , Thomas Huth , Laurent Vivier , Paolo Bonzini , qemu-block@nongnu.org, John Snow , Stefan Hajnoczi , Fam Zheng , Tyrone Ting , Markus Armbruster , Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= Subject: Re: [PATCH 02/10] tests/throttle: Clean up global variable shadowing In-Reply-To: <20231009100251.56019-3-philmd@linaro.org> References: <20231009100251.56019-1-philmd@linaro.org> <20231009100251.56019-3-philmd@linaro.org> Date: Mon, 09 Oct 2023 10:10:51 +0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=178.60.130.6; envelope-from=berto@igalia.com; helo=fanzine2.igalia.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@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-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: u/EMoIfo8gj/ On Mon 09 Oct 2023 12:02:43 PM +02, Philippe Mathieu-Daud=C3=A9 wrote: > Follow all other tests pattern from this file, use the > global 'cfg' variable to fix: > > tests/unit/test-throttle.c:621:20: error: declaration shadows a variabl= e in the global scope [-Werror,-Wshadow] > ThrottleConfig cfg; > ^ > tests/unit/test-throttle.c:28:23: note: previous declaration is here > static ThrottleConfig cfg; > ^ > > Signed-off-by: Philippe Mathieu-Daud=C3=A9 Acked-by: Alberto Garcia Berto