diff options
author | Wenji Huang <wenji.huang@oracle.com> | 2009-09-17 14:25:28 +0800 |
---|---|---|
committer | Wenji Huang <wenji.huang@oracle.com> | 2009-09-17 14:25:28 +0800 |
commit | bbc212e1244dbd30c2569cdd19d50ca36ca6612a (patch) | |
tree | 34023a5b7648d58e0098c8ee561f391144469005 /dwflpp.cxx | |
parent | 817c605781045a578b5464e68c39461bd541d307 (diff) | |
download | systemtap-steved-bbc212e1244dbd30c2569cdd19d50ca36ca6612a.tar.gz systemtap-steved-bbc212e1244dbd30c2569cdd19d50ca36ca6612a.tar.xz systemtap-steved-bbc212e1244dbd30c2569cdd19d50ca36ca6612a.zip |
Fix compilation error of dwflpp.cxx on gcc 4.1
* dwflpp.cxx(translate_location): Separate setting value from
declaration and add missing parameter.
Diffstat (limited to 'dwflpp.cxx')
-rw-r--r-- | dwflpp.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1732,11 +1732,12 @@ dwflpp::translate_location(struct obstack *pool, #if !_ELFUTILS_PREREQ (0,142) if (dwarf_whatattr (attr) == DW_AT_data_member_location) { - Dwarf_Op offset_loc = { .atom = DW_OP_plus_uconst }; + Dwarf_Op offset_loc; + offset_loc.atom = DW_OP_plus_uconst; if (dwarf_formudata (attr, &offset_loc.number) == 0) return c_translate_location (pool, &loc2c_error, this, &loc2c_emit_address, 1, 0, pc, - &offset_loc, 1, NULL, NULL); + &offset_loc, 1, NULL, NULL, NULL); } #endif |