On Wed, Aug 27, 2025 at 04:14:04PM -0700, Stephen Hemminger wrote:
> The code had a global array "esize" and also local variable
> with same name. This would cause warnings if -Wshadow was enabled.
> Fix by renaming the array to "esizes".
>
> Fixes: a9fe152363e2 ("test/ring: add custom element size functional tests")
> Cc: [email protected]
>
> Signed-off-by: Stephen Hemminger <[email protected]>
> ---
> app/test/test_ring.c | 190 +++++++++++++++++++++----------------------
> 1 file changed, 95 insertions(+), 95 deletions(-)
>
Acked-by: Bruce Richardson <[email protected]>- [RFC 0/8] Avoid overlapping declarations Stephen Hemminger
- [RFC 1/8] test/ring: avoid shadow variable usage Stephen Hemminger
- Re: [RFC 1/8] test/ring: avoid shadow variable ... Bruce Richardson
- [RFC 2/8] test/table: replace conflicting variable ... Stephen Hemminger
- [RFC 3/8] eal: add macro to disable shadow warnings Stephen Hemminger
- Re: [RFC 3/8] eal: add macro to disable shadow ... Bruce Richardson
- [RFC 4/8] eal: avoid shadowed variable aligned_end Stephen Hemminger
- [RFC 5/8] eal: avoid shadowed variables in trace co... Stephen Hemminger
- [RFC 6/8] ethdev: avoid shadowed variable warnings Stephen Hemminger
- Re: [RFC 6/8] ethdev: avoid shadowed variable w... Andrew Rybchenko
- [RFC 8/8] pcapng: avoid shadow declaration warning Stephen Hemminger
- [RFC 7/8] telemetry: avoid potential name conflict ... Stephen Hemminger
- Re: [RFC 7/8] telemetry: avoid potential name c... Bruce Richardson

