summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/UdpTransceiver.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2013-01-11 00:37:06 +0100
committerJose <jose@zeroc.com>2013-01-11 00:37:06 +0100
commit047677f816eb972a75213f3ed62dfc03368c2736 (patch)
tree93b55e4a0a749515d10b79a911929fef14154fb7 /cpp/src/Ice/UdpTransceiver.cpp
parentOS X installer relocation issues (diff)
downloadice-047677f816eb972a75213f3ed62dfc03368c2736.tar.bz2
ice-047677f816eb972a75213f3ed62dfc03368c2736.tar.xz
ice-047677f816eb972a75213f3ed62dfc03368c2736.zip
Fixed (ICE-5181) - unreferenced formal parameter
Diffstat (limited to 'cpp/src/Ice/UdpTransceiver.cpp')
-rw-r--r--cpp/src/Ice/UdpTransceiver.cpp29
1 files changed, 22 insertions, 7 deletions
diff --git a/cpp/src/Ice/UdpTransceiver.cpp b/cpp/src/Ice/UdpTransceiver.cpp
index c5efcf7aa62..b06335bc2f5 100644
--- a/cpp/src/Ice/UdpTransceiver.cpp
+++ b/cpp/src/Ice/UdpTransceiver.cpp
@@ -151,12 +151,17 @@ IceInternal::UdpTransceiver::close()
_fd = INVALID_SOCKET;
}
+
+#ifdef ICE_OS_WINRT
bool
-IceInternal::UdpTransceiver::write(Buffer& buf)
+IceInternal::UdpTransceiver::write(Buffer&)
{
-#ifdef ICE_OS_WINRT
return false;
+}
#else
+bool
+IceInternal::UdpTransceiver::write(Buffer& buf)
+{
assert(buf.i == buf.b.begin());
assert(_fd != INVALID_SOCKET && _state >= StateConnected);
@@ -233,15 +238,19 @@ repeat:
assert(ret == static_cast<ssize_t>(buf.b.size()));
buf.i = buf.b.end();
return true;
-#endif
}
+#endif
+#ifdef ICE_OS_WINRT
bool
-IceInternal::UdpTransceiver::read(Buffer& buf)
+IceInternal::UdpTransceiver::read(Buffer&)
{
-#ifdef ICE_OS_WINRT
return false;
+}
#else
+bool
+IceInternal::UdpTransceiver::read(Buffer& buf)
+{
assert(buf.i == buf.b.begin());
assert(_fd != INVALID_SOCKET);
@@ -345,8 +354,8 @@ repeat:
buf.b.resize(ret);
buf.i = buf.b.end();
return true;
-#endif
}
+#endif
#if defined(ICE_USE_IOCP) || defined(ICE_OS_WINRT)
bool
@@ -873,8 +882,14 @@ IceInternal::UdpTransceiver::effectivePort() const
IceInternal::UdpTransceiver::UdpTransceiver(const InstancePtr& instance,
const Address& addr,
+#ifdef ICE_OS_WINRT
+ const string&,
+ int
+#else
const string& mcastInterface,
- int mcastTtl) :
+ int mcastTtl
+#endif
+ ) :
_traceLevels(instance->traceLevels()),
_logger(instance->initializationData().logger),
_stats(instance->initializationData().stats),