initialize variable to avoid compiler warnings

This commit is contained in:
Arne Morten Kvarving
2022-12-12 14:01:11 +01:00
parent 138b97fb6e
commit faa384abb6

View File

@@ -135,7 +135,7 @@ std::tuple<T,int,int> PackUnpack(T& in)
Opm::Serializer ser(packer);
ser.pack(in);
size_t pos1 = ser.position();
T out;
T out{};
ser.unpack(out);
size_t pos2 = ser.position();