zephyr/subsys
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
..
bluetooth Bluetooth: controller: Handle invalid enc. pause 2023-08-22 10:53:47 +02:00
canbus canbus: isotp: convert SF length check from ASSERT to runtime check 2023-08-15 10:08:23 -07:00
console
debug debug: arc: expose thread relinquish cause 2023-08-09 16:06:57 +00:00
demand_paging
dfu dfu: mcuboot_shell: Add command to enter serial recovery 2023-04-24 13:27:53 +02:00
disk
dsp
emul emul: Don't panic if matching emul can't be found 2023-07-18 11:09:08 +00:00
fb fb: cfb: Remove unused value 2023-08-14 18:08:59 +00:00
fs fs: rename shadow variables 2023-08-22 11:39:58 +02:00
input input: rename callback define macro to INPUT_CALLBACK_DEFINE 2023-08-10 08:15:10 +00:00
ipc ipc: rename shadow variables 2023-08-22 11:39:58 +02:00
jwt
logging logging: rename shadow variables 2023-08-22 11:39:58 +02:00
lorawan lorawan: rename shadow variables 2023-08-22 11:39:58 +02:00
mgmt mgmt: ec_host_cmd: add SPI SMT32 backend 2023-08-21 15:11:21 +02:00
modbus modbus: use macro for function code for input register 2023-08-16 14:58:47 +02:00
net net: lwm2m: ignore -Wshadow for cbor type header file 2023-08-22 11:39:58 +02:00
pm pm: Fix unused-parameter warnings 2023-08-21 17:15:56 +02:00
portability portability cmsis_rtosv2: Check return of k_mem_slab_init() 2023-06-20 10:45:33 +00:00
random random: syscalls: use zephyr_syscall_header 2023-06-17 07:57:45 -04:00
retention retention: do noy rely on CRC being enable, imply CRC in Kconfig 2023-08-18 08:52:16 +03:00
rtio rtio: Implement a NO_RESPONSE flag for SQEs 2023-06-23 12:31:09 -04:00
sd
sensing sensing: initial sensor list and enumerate each sensor 2023-06-17 07:43:25 -04:00
settings settings: rename shadow variables 2023-08-22 11:39:58 +02:00
shell shell: Set right SERIAL_INIT_PRIORITY if ACPI enabled 2023-08-21 10:55:52 +02:00
sip_svc iterable_sections: move to specific header 2023-05-22 10:42:30 +02:00
stats
storage storage: rename shadow variables 2023-08-22 11:39:58 +02:00
task_wdt
testsuite ztest: rename shadow variables 2023-08-10 08:14:12 +00:00
timing
tracing tracing_user: let user implementation to do everything 2023-08-17 15:13:17 +02:00
usb usb: host: fixes shadow variables 2023-08-22 11:39:58 +02:00
zbus subsys/zbus: move to timepoint API 2023-07-25 09:12:26 +02:00
CMakeLists.txt cmake: enable -Wshadow partially for in-tree code 2023-08-22 11:39:58 +02:00
Kconfig sensing: add Sensing Subsystem skeleton 2023-06-17 07:43:25 -04:00