diff options
author | Bernard Normier <bernard@zeroc.com> | 2018-11-01 17:14:06 -0400 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2018-11-01 17:14:06 -0400 |
commit | 3a763985c52246b1b804cdd7ee7bd49a82e76bd3 (patch) | |
tree | e35b1b0bdf6715ed784d0c86482355528bee81ee /cpp/src/Ice/UdpTransceiver.cpp | |
parent | Visual Studio and msbuild updates (diff) | |
download | ice-3a763985c52246b1b804cdd7ee7bd49a82e76bd3.tar.bz2 ice-3a763985c52246b1b804cdd7ee7bd49a82e76bd3.tar.xz ice-3a763985c52246b1b804cdd7ee7bd49a82e76bd3.zip |
Increase Visual Studio warning level to Level4
Fixes #223.
Diffstat (limited to 'cpp/src/Ice/UdpTransceiver.cpp')
-rwxr-xr-x | cpp/src/Ice/UdpTransceiver.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cpp/src/Ice/UdpTransceiver.cpp b/cpp/src/Ice/UdpTransceiver.cpp index 64c2a756bc1..a48c8b017e4 100755 --- a/cpp/src/Ice/UdpTransceiver.cpp +++ b/cpp/src/Ice/UdpTransceiver.cpp @@ -56,6 +56,7 @@ IceInternal::UdpTransceiver::getAsyncInfo(SocketOperation status) return 0; } #elif defined(ICE_OS_UWP) + UNREFERENCED_PARAMETER(status); return &_write; #endif } @@ -499,8 +500,8 @@ IceInternal::UdpTransceiver::startWrite(Buffer& buf) } } } -#endif return true; +#endif } #ifdef ICE_OS_UWP @@ -587,7 +588,7 @@ IceInternal::UdpTransceiver::finishWrite(Buffer& buf) #endif } - assert(_write.count == buf.b.size()); + assert(static_cast<size_t>(_write.count) == buf.b.size()); buf.i = buf.b.end(); } @@ -661,7 +662,7 @@ IceInternal::UdpTransceiver::finishRead(Buffer& buf) DatagramSocketMessageReceivedEventArgs^ args = _received.front(); _received.pop_front(); - int ret; + int ret = 0; try { DataReader^ reader = args->GetDataReader(); |