mirror of
https://github.com/zeromq/libzmq.git
synced 2025-02-28 18:35:41 +01:00
Problem: UWP build fails
Solution: initialize local variable in all cases to false positive compiler warning
This commit is contained in:
parent
21f763c872
commit
3832bd6b11
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user