[PATCH v4 31/31] build: enable shadowed variable warnings

Bruce Richardson
2026-01-14T15:48:32Z

Enable -Wshadow globally for DPDK builds.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Chengwen Feng <fengchengwen@huawei.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
---
config/meson.build | 1 +
1 file changed, 1 insertion(+)

diff --git a/config/meson.build b/config/meson.build
index 927dc18d21..dff4c44fad 100644
--- a/config/meson.build
+++ b/config/meson.build
@@ -329,6 +329,7 @@ global_cflags = [
'-Wnested-externs',
'-Wold-style-definition',
'-Wpointer-arith',
+ '-Wshadow',
'-Wsign-compare',
'-Wstrict-prototypes',
'-Wundef',
--
2.51.0