Justin Chadwell
authored
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>
Name | Last commit | Last update |
---|---|---|
.. | ||
aarch64 | ||
include | ||
tsp | ||
ls_bl1_setup.c | ||
ls_bl2_setup.c | ||
ls_bl31_setup.c | ||
ls_common.c | ||
ls_common.mk | ||
ls_image_load.c | ||
ls_io_storage.c | ||
ls_timer.c | ||
ls_topology.c | ||
ls_tzc380.c | ||
ns_access.c |