[PATCH v2 00/23] examples: fix -Wshadow warnings
Thomas Monjalon
thomas at monjalon.net
Thu Jun 18 15:09:25 CEST 2026
07/04/2026 17:15, Stephen Hemminger:
> Several DPDK examples had -Wshadow disabled via no_shadow_cflag in
> their meson.build files. This series fixes all shadow variable
> warnings and removes the suppression flag, so that -Wshadow is
> enabled uniformly across every example.
>
> The fixes fall into three categories:
> - Renaming function parameters or local variables that shadow
> globals (most patches)
> - Removing unused function parameters that duplicated globals
> (dma, bond, flow_filtering, ipsec-secgw, vhost, qos_sched)
> - Simply removing no_shadow_cflag where there were no warnings
> (vm_power_manage, bbdev_app, l2fwd-crypto, l2fwd-event,
> l3fwd-graph)
>
> v2 - fix additional shadow warnings only visible with clang
Applied with fixes noted in the thread, thanks.
More information about the dev
mailing list