[DPDK/core Bug 1743] malloc: duplicate shadowed variable definition
bugzilla at dpdk.org
bugzilla at dpdk.org
Thu Jul 3 19:06:16 CEST 2025
https://bugs.dpdk.org/show_bug.cgi?id=1743
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 at dpdk.org
Reporter: stephen at 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:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20250703/7d9415ce/attachment.htm>
More information about the dev
mailing list