Bug 1154 - part 3 'found' set but not used, g++ > 4.6.0
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user