From: Julien Grall Subject: [PATCH 0/6] Remove some usage of shadow variable Date: Tue, 27 Oct 2015 15:39:13 +0000 Message-ID: <1445960359-17217-1-git-send-email-julien.grall@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Zr6Mi-0002Ke-0z for xen-devel@lists.xenproject.org; Tue, 27 Oct 2015 15:40:48 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Keir Fraser , Ian Campbell , George Dunlap , Dario Faggioli , Tim Deegan , Julien Grall , Stefano Stabellini , Jan Beulich List-Id: xen-devel@lists.xenproject.org Hi all, I wrote this patch series after noticing that one of my series [1] was shadowing a variable and GCC didn't warn it. So I've turned on -Wshadow and look at if there is other places abusing of shadow variable in Xen. This series is not complete and only contain the more simple changes. I'd like to have some input to know whether turning on -Wshadow would be sensible in the future. Regards, [1] http://lists.xen.org/archives/html/xen-devel/2015-10/msg01354.html Cc: Dario Faggioli Cc: George Dunlap Cc: Ian Campbell Cc: Jan Beulich Cc: Keir Fraser Cc: Stefano Stabellini Cc: Tim Deegan Julien Grall (6): xen/arm: domain_build: Avoid to shadow the variable "mod" in write_properties xen/common: domain: Avoid to shadow the variable "d" in do_vcpu_op xen/common: grant_table: Avoid to shadow "frame" in __gnttab_map_grant_ref xen/common: memory: Avoid to shadow the variable "d" in do_memory_op xen/common: sched: Avoid to shadow the variable "cur" in runq_tickle xen/common: sched-rt: Avoid to shadow the variable "svc" in rt_dom_cntl xen/arch/arm/domain_build.c | 10 +++++----- xen/common/domain.c | 1 - xen/common/grant_table.c | 1 - xen/common/memory.c | 3 --- xen/common/sched_credit2.c | 2 -- xen/common/sched_rt.c | 2 +- 6 files changed, 6 insertions(+), 13 deletions(-) -- 2.1.4