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

Bruce Richardson bruce.richardson at intel.com
Mon Dec 1 12:44:48 CET 2025


Enable -Wshadow globally for DPDK builds.

Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
Acked-by: Chengwen Feng <fengchengwen at huawei.com>
Acked-by: Stephen Hemminger <stephen at 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



More information about the dev mailing list