]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwarflint: Drop useless variable prev_abbrev in check_debug_info
authorPetr Machata <pmachata@redhat.com>
Mon, 7 Mar 2011 06:59:55 +0000 (07:59 +0100)
committerPetr Machata <pmachata@redhat.com>
Mon, 7 Mar 2011 06:59:55 +0000 (07:59 +0100)
dwarflint/check_debug_info.cc

index e13b0fe69eee5d2b506e89c2a32ccf1b73c30bf5..242224f742469dd73c1ba63193b30c82f844812a 100644 (file)
@@ -519,7 +519,6 @@ namespace
     uint64_t sibling_addr = 0;
     uint64_t die_off, prev_die_off = 0;
     struct abbrev *abbrev = NULL;
-    struct abbrev *prev_abbrev = NULL;
     struct where where = WHERE (sec_info, NULL);
 
     struct value_check_cb_ctx cb_ctx = {
@@ -598,7 +597,6 @@ namespace
          std::cerr << where << ": abbrev " << abbr_code << std::endl;
 
        /* Find the abbrev matching the code.  */
-       prev_abbrev = abbrev;
        abbrev = abbrevs->find_abbrev (abbr_code);
        if (abbrev == NULL)
          {