Skip to content

Conversation

@flagarde
Copy link
Contributor

Fix a warning :

In file included from /home/rpclab/CLionProjects/YAODAQ/build/_deps/ixwebsocket-src/ixwebsocket/IXWebSocket.h:17,
                 from /home/rpclab/CLionProjects/YAODAQ/build/_deps/ixwebsocket-src/ixwebsocket/IXWebSocket.cpp:7:
/home/rpclab/CLionProjects/YAODAQ/build/_deps/ixwebsocket-src/ixwebsocket/IXWebSocketMessage.h: In function ‘ix::WebSocket::run()::<lambda(const string&, size_t, bool, ix::WebSocketTransport::MessageKind)>’:
/home/rpclab/CLionProjects/YAODAQ/build/_deps/ixwebsocket-src/ixwebsocket/IXWebSocketMessage.h:35:15: warning: ‘webSocketMessageType’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   35 |             : type(t)
      |               ^~~~~~~
/home/rpclab/CLionProjects/YAODAQ/build/_deps/ixwebsocket-src/ixwebsocket/IXWebSocket.cpp:388:42: note: ‘webSocketMessageType’ was declared here
  388 |                     WebSocketMessageType webSocketMessageType;
      |                                          ^~~~~~~~~~~~~~~~~~~~

…e used uninitialized in this function [-Wmaybe-uninitialized]
@bsergean
Copy link
Contributor

All cases are covered in the switch (messageKind) so this should not be a problem, but warnings are annoying.

@bsergean bsergean merged commit 8820815 into machinezone:master Nov 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants