zephyr/arch
Daniel Leung e38fc6de8a cmake: enable -Wshadow partially for in-tree code
This enables -Wshadow to warn about shadow variables on
in tree code under arch/, boards/, drivers/, kernel/,
lib/, soc/, and subsys/.

Note that this does not enable it globally because
out-of-tree modules will probably take some time to fix
(or not at all depending on the project), and it would be
great to avoid introduction of any new shadow variables
in the meantime.

Also note that this tries to be done in a minimally
invasive way so it is easy to revert when we enable
-Wshadow globally. Source files under modules/, samples/
and tests/ are currently excluded because there does not
seem to be a trivial way to add -Wshadow there without
going through all CMakeLists.txt to add the option
(as there are 1000+ files to change).

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2023-08-22 11:39:58 +02:00
..
arc kernel: spinlock: LOCKED -> K_SPINLOCK 2023-07-10 09:27:21 +02:00
arm arm: cortex_r: support recoverable data abort 2023-08-21 10:07:29 +02:00
arm64 arch: arm64: Refine v8R AArch64 MPU regions switch 2023-08-21 13:27:07 +02:00
common arch: common: use zephyr_library for all source files 2023-08-16 15:00:49 +02:00
mips
nios2
posix POSIX arch: Fix literal floating comparison in 32bit targets 2023-08-14 13:37:27 +00:00
riscv riscv: renames shadow variables 2023-08-10 08:14:12 +00:00
sparc
x86 x86: rename shadow variables 2023-08-22 11:39:58 +02:00
xtensa arch: xtensa: Implement arch_float_enable&disable 2023-08-21 10:10:06 +02:00
CMakeLists.txt cmake: enable -Wshadow partially for in-tree code 2023-08-22 11:39:58 +02:00
Kconfig kernel: canaries: Allow using TLS to store it 2023-08-08 19:08:04 -04:00