[RFC PATCH v2 31/33] app/test: disable shadowing warnings for unit tests

Bruce Richardson
2025-11-07T15:54:43Z

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>
---
app/test/meson.build | 1 +
1 file changed, 1 insertion(+)

diff --git a/app/test/meson.build b/app/test/meson.build
index 8df8d3edd1..9d4a88d976 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.48.1