public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
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
Date: Mon, 27 Feb 2017 17:06:00 -0000	[thread overview]
Message-ID: <20170227170651.122845.qmail@sourceware.org> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1506 bytes --]

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 <jan.kratochvil@redhat.com>
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.


                 reply	other threads:[~2017-02-27 17:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170227170651.122845.qmail@sourceware.org \
    --to=jkratoch@sourceware.org \
    --cc=archer-commits@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).