zephyr/lib
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
..
acpi acpi: rename shadow variables 2023-08-10 08:14:12 +00:00
cpp lib: cpp: name the choice group for selecting C++ standard 2023-07-27 22:33:14 -04:00
crc lib: crc: move from lib/os to lib/crc 2023-08-18 08:52:16 +03:00
hash lib: hash: use new c++ Kconfig symbols 2023-07-26 14:53:51 +02:00
libc libc/common: Add memalign 2023-08-10 11:35:17 -04:00
open-amp open-amp: Fix compilation with cache enabled 2023-04-18 12:12:56 +02:00
os lib: crc: move from lib/os to lib/crc 2023-08-18 08:52:16 +03:00
posix posix: signal: extend strsignal buf to cover entire INT range 2023-08-04 15:54:18 -04:00
runtime llvm: Add support for selecting runtime library 2023-08-03 19:35:11 +02:00
smf lib: smf: fix include 2022-05-25 11:14:18 +09:00
CMakeLists.txt cmake: enable -Wshadow partially for in-tree code 2023-08-22 11:39:58 +02:00
Kconfig lib: crc: move from lib/os to lib/crc 2023-08-18 08:52:16 +03:00