Bug 1154 - part 3 'found' set but not used, g++ > 4.6.0

This commit is contained in:
John Abraham
2011-05-14 04:27:39 -04:00
parent a68f743413
commit bd30cc9d39

View File

@@ -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;