From: Petr Machata Date: Fri, 1 Apr 2011 12:38:07 +0000 (+0200) Subject: dwarflint: Work around a GCC compilation problem X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=77602d3ec71b95eb84faf2de4f4058ca13f6b2dc;p=thirdparty%2Felfutils.git dwarflint: Work around a GCC compilation problem --- diff --git a/dwarflint/check_debug_pub.cc b/dwarflint/check_debug_pub.cc index 568db4329..0f18e682f 100644 --- a/dwarflint/check_debug_pub.cc +++ b/dwarflint/check_debug_pub.cc @@ -89,7 +89,8 @@ check_debug_pub::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::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;