Commit 3832bd6b authored by Luca Boccassi's avatar Luca Boccassi

Problem: UWP build fails

Solution: initialize local variable in all cases to false positive
compiler warning
parent 21f763c8
......@@ -148,8 +148,11 @@ void zmq::ws_engine_t::start_ws_handshake ()
else if (_options.mechanism == ZMQ_CURVE)
protocol = "ZWS2.0/CURVE";
#endif
else
else {
// Avoid unitialized variable error breaking UWP build
protocol = "";
assert (false);
}
unsigned char nonce[16];
int *p = reinterpret_cast<int *> (nonce);
......
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