[warnings] add -Wshadow which helps detect local variables that override globals

Nothing particularly bad showed up but cleaned up a bit of code.
This commit is contained in:
Travis Geiselbrecht
2020-07-25 16:46:34 -07:00
parent 82b4d6ffdb
commit f7d8e2300c
29 changed files with 117 additions and 126 deletions

View File

@@ -155,7 +155,7 @@ void arm_cm_irq_exit(bool reschedule) {
void arch_chain_load(void *entry, ulong arg0, ulong arg1, ulong arg2, ulong arg3) {
#if (__CORTEX_M >= 0x03)
uint32_t *vectab = (uint32_t *)entry;
uint32_t *entry_vector = (uint32_t *)entry;
__asm__ volatile(
"mov r0, %[arg0]; "
@@ -169,8 +169,8 @@ void arch_chain_load(void *entry, ulong arg0, ulong arg1, ulong arg2, ulong arg3
[arg1]"r"(arg1),
[arg2]"r"(arg2),
[arg3]"r"(arg3),
[SP]"r"(vectab[0]),
[entry]"r"(vectab[1])
[SP]"r"(entry_vector[0]),
[entry]"r"(entry_vector[1])
: "r0", "r1", "r2", "r3"
);