DPDK patches and discussions
 help / color / mirror / Atom feed
* [DPDK/core Bug 1743] malloc: duplicate shadowed variable definition
@ 2025-07-03 17:06 bugzilla
  0 siblings, 0 replies; only message in thread
From: bugzilla @ 2025-07-03 17:06 UTC (permalink / raw)
  To: dev

[-- Attachment #1: Type: text/plain, Size: 1189 bytes --]

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@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:
You are the assignee for the bug.

[-- Attachment #2: Type: text/html, Size: 3063 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-07-03 17:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-03 17:06 [DPDK/core Bug 1743] malloc: duplicate shadowed variable definition bugzilla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).