[RFC 1/8] test/ring: avoid shadow variable usage

Bruce Richardson bruce.richardson at intel.com
Thu Aug 28 09:42:19 CEST 2025


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: honnappa.nagarahalli at arm.com
> 
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> ---
>  app/test/test_ring.c | 190 +++++++++++++++++++++----------------------
>  1 file changed, 95 insertions(+), 95 deletions(-)
> 
Acked-by: Bruce Richardson <bruce.richardson at intel.com>



More information about the dev mailing list