Commit 32188358 authored by Dominik Charousset's avatar Dominik Charousset

Fix maybe-uninitialized warnings

parent f3ccd27d
......@@ -204,7 +204,7 @@ error node_id::serialize(serializer& sink) const {
}
error node_id::deserialize(deserializer& source) {
atom_value impl;
auto impl = static_cast<atom_value>(0);
if (auto err = source(impl))
return err;
if (impl == atom("")) {
......
......@@ -120,8 +120,8 @@ peer::behavior_type peer_fun(peer::broker_pointer self, connection_handle hdl,
},
[=](const new_data_msg& msg) {
CAF_MESSAGE("received new_data_msg");
atom_value x;
int y;
auto x = static_cast<atom_value>(0);
auto y = 0;
binary_deserializer source{self->system(), msg.buf};
auto e = source(x, y);
CAF_REQUIRE(!e);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment