From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 122893 invoked by alias); 27 Feb 2017 17:06:51 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 122872 invoked by uid 9674); 27 Feb 2017 17:06:51 -0000 Date: Mon, 27 Feb 2017 17:06:00 -0000 Message-ID: <20170227170651.122845.qmail@sourceware.org> From: jkratoch@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] users/jkratoch/indexcxx-debugnames: dwarf.c: In function ‘display_debug_names’: dwarf.c:7856:44: error: ‘second_abbrev_tag’ may be used uninitialized in this function [-Werror=maybe-uninitialized] - Victor Leschuk X-Git-Refname: refs/heads/users/jkratoch/indexcxx-debugnames X-Git-Reftype: branch X-Git-Oldrev: 08dc6ceb26465eec9b4ac66bb4689434017bd78a X-Git-Newrev: 387034081e3b27b4cdf4692c1c731198fd0c6168 X-SW-Source: 2017-q1/txt/msg00037.txt.bz2 List-Id: The branch, users/jkratoch/indexcxx-debugnames has been updated via 387034081e3b27b4cdf4692c1c731198fd0c6168 (commit) from 08dc6ceb26465eec9b4ac66bb4689434017bd78a (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 387034081e3b27b4cdf4692c1c731198fd0c6168 Author: Jan Kratochvil Date: Mon Feb 27 18:05:56 2017 +0100 dwarf.c: In function ‘display_debug_names’: dwarf.c:7856:44: error: ‘second_abbrev_tag’ may be used uninitialized in this function [-Werror=maybe-uninitialized] - Victor Leschuk ----------------------------------------------------------------------- Summary of changes: binutils/dwarf.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) First 500 lines of diff: diff --git a/binutils/dwarf.c b/binutils/dwarf.c index 21000c2..a63227a 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -7835,7 +7835,8 @@ display_debug_names (struct dwarf_section *section, void *file) // initial tag read of the second entry, then it becomes 0 for the // first entry for real printing etc. int tagno = -2; - dwarf_vma second_abbrev_tag; + /* Initialize it due to a false compiler warning. */ + dwarf_vma second_abbrev_tag = -1; for (;;) { unsigned int bytes_read; hooks/post-receive -- Repository for Project Archer.