Enable -Wshadow always
Variable shadowing is, according to the C standard, permitted and valid
behaviour. However, allowing a local variable to take the same name as a
global one can cause confusion and can make refactoring and bug hunting
more difficult.

This patch moves -Wshadow from WARNING2 into the general warning group
so it is always used. It also fixes all warnings that this introduces
by simply renaming the local variable to a new name

Change-Id: I6b71bdce6580c6e58b5e0b41e4704ab0aa38576e
Signed-off-by: Justin Chadwell <justin.chadwell@arm.com>
1 parent b8baa93 commit b7f6525db642d533327403ff8130eb91190f2e98
@Justin Chadwell Justin Chadwell authored on 17 Sep 2019
Madhukar Pappireddy committed on 19 Nov 2019
Showing 7 changed files
View
Makefile
View
drivers/staging/renesas/rcar/ddr/ddr_b/boot_init_dram.c
View
plat/layerscape/common/ns_access.c
View
plat/mediatek/mt8173/drivers/spm/spm_suspend.c
View
plat/renesas/rcar/bl2_plat_setup.c
View
plat/rockchip/rk3399/drivers/dram/dfs.c
View
services/std_svc/spm_mm/spm_main.c