diff --git a/ixwebsocket/IXSocketFactory.cpp b/ixwebsocket/IXSocketFactory.cpp index cc148aaf..7c680512 100644 --- a/ixwebsocket/IXSocketFactory.cpp +++ b/ixwebsocket/IXSocketFactory.cpp @@ -31,6 +31,7 @@ namespace ix std::string& errorMsg, const SocketTLSOptions& tlsOptions) { + (void) tlsOptions; errorMsg.clear(); std::shared_ptr socket; diff --git a/ixwebsocket/IXWebSocketTransport.cpp b/ixwebsocket/IXWebSocketTransport.cpp index 691671f4..48bcfc6b 100644 --- a/ixwebsocket/IXWebSocketTransport.cpp +++ b/ixwebsocket/IXWebSocketTransport.cpp @@ -543,7 +543,7 @@ namespace ix } // Prevent integer overflow in the next conditional - const uint64_t maxFrameSize(1 << 63); + const uint64_t maxFrameSize(1ULL << 63); if (ws.N > maxFrameSize) { return;