From f0e3fea33428b7f2805d61c771298100ff539c7f Mon Sep 17 00:00:00 2001 From: William Cohen Date: Wed, 13 Jul 2022 12:09:26 -0400 Subject: [PATCH] Make variable initializer work with RHEL6 compiler The gcc 4.4 compiler in RHEL 6 does not understand initializer that use ".field=". Adjusted the variable initialization to work with the older compiler. --- dwflpp.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dwflpp.cxx b/dwflpp.cxx index 3a1683a99..c2fdb05f5 100644 --- a/dwflpp.cxx +++ b/dwflpp.cxx @@ -3512,8 +3512,8 @@ success: } Dwarf_Attribute data_member_location = { - .code = DW_AT_data_member_location, .form = DW_FORM_udata, - .valp = loc, .cu = attr.cu + DW_AT_data_member_location, DW_FORM_udata, + loc, attr.cu }; dies.insert(dies.begin(), die); -- 2.43.5