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 =E2=80=98malloc_heap_free=E2=
=80=99:
../lib/eal/common/malloc_heap.c:1047:23: warning: declaration of =E2=80=98a=
ligned_end=E2=80=99
shadows a previous local [-Wshadow]
1047 | void *aligned_end =3D 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.
=20=20=20=20=20=20=20=20=20=20
=
--17515623750.dB4b56c.1309387--
From mboxrd@z Thu Jan 1 00:00:00 1970
Return-Path:
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on
aws-us-west-2-korg-lkml-1.web.codeaurora.org
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
by smtp.lore.kernel.org (Postfix) with ESMTP id B4DAED2ECF7
for ; Tue, 20 Jan 2026 08:03:47 +0000 (UTC)
Received: from mails.dpdk.org (localhost [127.0.0.1])
by mails.dpdk.org (Postfix) with ESMTP id 08AD240A80;
Tue, 20 Jan 2026 09:03:47 +0100 (CET)
Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178])
by mails.dpdk.org (Postfix) with ESMTP id 1656540273
for ; Tue, 20 Jan 2026 09:03:46 +0100 (CET)
Received: by inbox.dpdk.org (Postfix, from userid 33)
id 095714A28E; Tue, 20 Jan 2026 09:03:45 +0100 (CET)
From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [DPDK/core Bug 1743] malloc: duplicate shadowed variable definition
Date: Tue, 20 Jan 2026 08:03:46 +0000
X-Bugzilla-Reason: AssignedTo
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: DPDK
X-Bugzilla-Component: core
X-Bugzilla-Version: unspecified
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
X-Bugzilla-Who: david.marchand@redhat.com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: Normal
X-Bugzilla-Assigned-To: dev@dpdk.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: resolution bug_status cc
Message-ID:
In-Reply-To:
References:
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=UTF-8
X-Bugzilla-URL: http://bugs.dpdk.org/
Auto-Submitted: auto-generated
X-Auto-Response-Suppress: All
MIME-Version: 1.0
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: dev-bounces@dpdk.org
http://bugs.dpdk.org/show_bug.cgi?id=3D1743
David Marchand (david.marchand@redhat.com) changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|UNCONFIRMED |RESOLVED
CC| |david.marchand@redhat.com
--- Comment #1 from David Marchand (david.marchand@redhat.com) ---
Fixed in 68c2dde1d441 ("eal: fix variable shadowing").
--=20
You are receiving this mail because:
You are the assignee for the bug.=
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 =E2=80=98malloc_heap_free=E2= =80=99: ../lib/eal/common/malloc_heap.c:1047:23: warning: declaration of =E2=80=98a= ligned_end=E2=80=99 shadows a previous local [-Wshadow] 1047 | void *aligned_end =3D 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; | ^~~~~~~~~~~