diff --git a/src/internet/model/udp-socket-impl.cc b/src/internet/model/udp-socket-impl.cc index b5779fb9f..8a5eb225a 100644 --- a/src/internet/model/udp-socket-impl.cc +++ b/src/internet/model/udp-socket-impl.cc @@ -547,6 +547,9 @@ UdpSocketImpl::RecvFrom (uint32_t maxSize, uint32_t flags, bool found; found = packet->PeekPacketTag (tag); NS_ASSERT (found); + //cast found to void, to suppress 'found' set but not used,compiler warning + //in optimized builds + (void) found; fromAddress = tag.GetAddress (); } return packet;