From: Roland McGrath Date: Tue, 16 Jun 2009 12:09:08 +0000 (-0700) Subject: Strange C++ nit for gcc 4.4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=974dbaee5afec031c82827fc72f7efe34b7079be;p=thirdparty%2Felfutils.git Strange C++ nit for gcc 4.4 --- diff --git a/libdw/c++/dwarf_edit b/libdw/c++/dwarf_edit index 83051e5d6..85c3a4ff9 100644 --- a/libdw/c++/dwarf_edit +++ b/libdw/c++/dwarf_edit @@ -631,7 +631,10 @@ namespace elfutils (*this)[(*i).first] = mapped_type (x.begin (), x.end ()); } else - (*this)[key_type (0, -1)] = other.location (); + { + mapped_type v = other.location (); + (*this)[key_type (0, -1)] = v; + } return *this; }