From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 89028 invoked by alias); 28 Apr 2019 11:18:45 -0000 Mailing-List: contact elfutils-devel-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: elfutils-devel-owner@sourceware.org Received: (qmail 89018 invoked by uid 89); 28 Apr 2019 11:18:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.100.3 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_PASS autolearn=ham version=3.3.1 spammy=Copy, Search, That's, Thats X-Spam-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_PASS autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on sourceware.org X-Spam-Level: X-HELO: gnu.wildebeest.org Received: from wildebeest.demon.nl (HELO gnu.wildebeest.org) (212.238.236.112) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 28 Apr 2019 11:18:43 +0000 Received: from librem.wildebeest.org (83-161-178-79.mobile.xs4all.nl [83.161.178.79]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gnu.wildebeest.org (Postfix) with ESMTPSA id 5FFE4300062A; Sun, 28 Apr 2019 13:18:41 +0200 (CEST) Received: by librem.wildebeest.org (Postfix, from userid 1000) id 77C22C0ABC; Sun, 28 Apr 2019 13:18:38 +0200 (CEST) From: Mark Wielaard To: elfutils-devel@sourceware.org Cc: Mark Wielaard Subject: [COMMITTED] libdw: Remove unused variable initialization in dwarf_siblingof. Date: Sun, 28 Apr 2019 11:18:00 -0000 Message-Id: <20190428111835.21507-1-mark@klomp.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Flag: NO X-IsSubscribed: yes X-SW-Source: 2019-q2/txt/msg00032.txt.bz2 We immediately reassign the value of addr after declaration. Signed-off-by: Mark Wielaard --- libdw/ChangeLog | 4 ++++ libdw/dwarf_siblingof.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libdw/ChangeLog b/libdw/ChangeLog index bc446fe5a..37aab8047 100644 --- a/libdw/ChangeLog +++ b/libdw/ChangeLog @@ -1,3 +1,7 @@ +2019-04-28 Mark Wielaard + + * dwarf_siblingof.c (dwarf_siblingof): Don't initialize addr. + 2019-04-28 Mark Wielaard * dwarf_getlocation.c (dwarf_getlocation_addr): Call diff --git a/libdw/dwarf_siblingof.c b/libdw/dwarf_siblingof.c index 613d20908..dbed9fa82 100644 --- a/libdw/dwarf_siblingof.c +++ b/libdw/dwarf_siblingof.c @@ -57,7 +57,7 @@ dwarf_siblingof (Dwarf_Die *die, Dwarf_Die *result) /* Copy of the CU in the request. */ sibattr.cu = this_die.cu; /* That's the address we start looking. */ - unsigned char *addr = this_die.addr; + unsigned char *addr; /* Search for the beginning of the next die on this level. We must not return the dies for children of the given die. */ -- 2.20.1