[PATCH v4 29/31] app/test: disable shadowing warnings for unit tests

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

The dpdk-test binary has multiple issues with variable shadowing. For
now, explicitly ignore shadowing warnings in this app.

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

diff --git a/app/test/meson.build b/app/test/meson.build
index efec42a6bf..f4d04a6e42 100644
--- a/app/test/meson.build
+++ b/app/test/meson.build
@@ -256,6 +256,7 @@ foreach d:optional_deps
endforeach

cflags += no_wvla_cflag
+cflags += no_shadow_cflag

extra_flags = [
# Strict-aliasing rules are violated by uint8_t[] to context size casts.
--
2.51.0