[15/15] sim: warnings: enable -Wshadow=local
Checks
Context |
Check |
Description |
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gdb_build--master-arm |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gdb_check--master-arm |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 |
success
|
Testing passed
|
Commit Message
This brings us in sync with current set of gdb warnings (for C).
---
sim/configure | 1 +
sim/m4/sim_ac_option_warnings.m4 | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
Comments
>>>>> "Mike" == Mike Frysinger <vapier@gentoo.org> writes:
Mike> This brings us in sync with current set of gdb warnings (for C).
FWIW I skimmed this series and it all looked reasonable to me. I think
it's worth applying. IIRC in gdb the shadow warning found a few real
bugs, so even if it didn't help the sim immediately, it can still be
helpful as bug prevention.
Tom
@@ -46,7 +46,7 @@ dnl C++ -Wno-mismatched-tags
dnl C++ -Wsuggest-override
-Wimplicit-fallthrough=5
-Wduplicated-cond
-dnl -Wshadow=local
+-Wshadow=local
dnl C++ -Wdeprecated-copy
dnl C++ -Wdeprecated-copy-dtor
dnl C++ -Wredundant-move