]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwarflint: Work around a GCC compilation problem
authorPetr Machata <pmachata@redhat.com>
Fri, 1 Apr 2011 12:38:07 +0000 (14:38 +0200)
committerPetr Machata <pmachata@redhat.com>
Fri, 1 Apr 2011 12:38:07 +0000 (14:38 +0200)
dwarflint/check_debug_pub.cc

index 568db432906ba4cf7db268827d7df902712a8872..0f18e682f9a893a1c6a4a476527b48aa12d495a0 100644 (file)
@@ -89,7 +89,8 @@ check_debug_pub<sec_id>::check_pub_structural ()
 
   while (!read_ctx_eof (&ctx))
     {
-      struct where where = WHERE (_m_sec->sect.id, NULL);
+      enum section_id sid = _m_sec->sect.id;
+      struct where where = WHERE (sid, NULL);
       where_reset_1 (&where, read_ctx_get_offset (&ctx));
       const unsigned char *set_begin = ctx.ptr;
 
@@ -219,7 +220,8 @@ check_debug_pub<sec_id>::check_pub_structural ()
          while (c);
        }
 
-       struct where wh = WHERE (_m_sec->sect.id, NULL);
+       sid = _m_sec->sect.id;
+       struct where wh = WHERE (sid, NULL);
        if (sub_ctx.ptr != sub_ctx.end)
          {
            uint64_t off_start, off_end;