Bug ID 1743
Summary malloc: duplicate shadowed variable definition
Product DPDK
Version unspecified
Hardware All
OS All
Status UNCONFIRMED
Severity minor
Priority Normal
Component core
Assignee dev@dpdk.org
Reporter stephen@networkplumber.org
Target Milestone ---

Building with -Wshadow reports:

[51/3418] Compiling C object lib/librte_eal.a.p/eal_common_malloc_heap.c.o
../lib/eal/common/malloc_heap.c: In function ‘malloc_heap_free’:
../lib/eal/common/malloc_heap.c:1047:23: warning: declaration of ‘aligned_end’
shadows a previous local [-Wshadow]
 1047 |                 void *aligned_end = RTE_PTR_ADD(aligned_start,
aligned_len);
      |                       ^~~~~~~~~~~
../lib/eal/common/malloc_heap.c:862:45: note: shadowed declaration is here
  862 |         void *start, *aligned_start, *end, *aligned_end;
      |                                             ^~~~~~~~~~~
          


You are receiving this mail because: