diff options
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Ice/EventHandler.cpp | 2 | ||||
-rw-r--r-- | cpp/src/Ice/Selector.cpp | 2 | ||||
-rw-r--r-- | cpp/src/Ice/Service.cpp | 2 | ||||
-rw-r--r-- | cpp/src/IceSSL/TransceiverI.cpp | 16 |
4 files changed, 16 insertions, 6 deletions
diff --git a/cpp/src/Ice/EventHandler.cpp b/cpp/src/Ice/EventHandler.cpp index 12c796843c4..d0037e1593e 100644 --- a/cpp/src/Ice/EventHandler.cpp +++ b/cpp/src/Ice/EventHandler.cpp @@ -18,8 +18,8 @@ IceUtil::Shared* IceInternal::upCast(EventHandler* p) { return p; } IceInternal::EventHandler::EventHandler() : #if defined(ICE_USE_IOCP) || defined(ICE_OS_WINRT) - _pending(SocketOperationNone), _ready(SocketOperationNone), + _pending(SocketOperationNone), _started(SocketOperationNone), _finish(false), #else diff --git a/cpp/src/Ice/Selector.cpp b/cpp/src/Ice/Selector.cpp index d6921c5a54d..8fece9557b0 100644 --- a/cpp/src/Ice/Selector.cpp +++ b/cpp/src/Ice/Selector.cpp @@ -114,7 +114,7 @@ Selector::~Selector() void Selector::setup(int sizeIO) { - _handle = CreateIoCompletionPort(INVALID_HANDLE_VALUE, NULL, NULL, sizeIO); + _handle = CreateIoCompletionPort(INVALID_HANDLE_VALUE, NULL, 0, sizeIO); if(_handle == NULL) { Ice::SocketException ex(__FILE__, __LINE__); diff --git a/cpp/src/Ice/Service.cpp b/cpp/src/Ice/Service.cpp index 140eb8759f4..df2681fb02b 100644 --- a/cpp/src/Ice/Service.cpp +++ b/cpp/src/Ice/Service.cpp @@ -230,7 +230,7 @@ public: DWORD d; LONG err = RegCreateKeyExW(HKEY_LOCAL_MACHINE, IceUtil::stringToWstring(nativeToUTF8(stringConverter, createKey(source))).c_str(), - 0, L"REG_SZ", REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, 0, &hKey, &d); + 0, const_cast<wchar_t*>(L"REG_SZ"), REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, 0, &hKey, &d); if(err != ERROR_SUCCESS) { diff --git a/cpp/src/IceSSL/TransceiverI.cpp b/cpp/src/IceSSL/TransceiverI.cpp index db134aa1d2a..a4e21e73ceb 100644 --- a/cpp/src/IceSSL/TransceiverI.cpp +++ b/cpp/src/IceSSL/TransceiverI.cpp @@ -722,7 +722,10 @@ IceSSL::TransceiverI::startRead(IceInternal::Buffer& buf) assert(!BIO_ctrl_get_read_request(_iocpBio)); ERR_clear_error(); // Clear any spurious errors. - int ret = SSL_read(_ssl, reinterpret_cast<void*>(&*buf.i), static_cast<int>(buf.b.end() - buf.i)); +#ifndef NDEBUG + int ret = +#endif + SSL_read(_ssl, reinterpret_cast<void*>(&*buf.i), static_cast<int>(buf.b.end() - buf.i)); assert(ret <= 0 && SSL_get_error(_ssl, ret) == SSL_ERROR_WANT_READ); assert(BIO_ctrl_get_read_request(_iocpBio)); @@ -1001,7 +1004,11 @@ IceSSL::TransceiverI::receive() } assert(_readI == _readBuffer.end()); - int n = BIO_write(_iocpBio, &_readBuffer[0], static_cast<int>(_readBuffer.size())); +#ifndef NDEBUG + int n = +#endif + BIO_write(_iocpBio, &_readBuffer[0], static_cast<int>(_readBuffer.size())); + assert(n == static_cast<int>(_readBuffer.size())); return true; } @@ -1013,7 +1020,10 @@ IceSSL::TransceiverI::send() { assert(BIO_ctrl_pending(_iocpBio)); _writeBuffer.resize(BIO_ctrl_pending(_iocpBio)); - int n = BIO_read(_iocpBio, &_writeBuffer[0], static_cast<int>(_writeBuffer.size())); +#ifndef NDEBUG + int n = +#endif + BIO_read(_iocpBio, &_writeBuffer[0], static_cast<int>(_writeBuffer.size())); assert(n == static_cast<int>(_writeBuffer.size())); _writeI = _writeBuffer.begin(); } |