Bug 1159 - opt build wifi module unused variables
This commit is contained in:
@@ -55,6 +55,9 @@ WifiInformationElement::Deserialize (Buffer::Iterator i)
|
||||
// This IE was not optional, so confirm that we did actually
|
||||
// deserialise something.
|
||||
NS_ASSERT (i.GetDistanceFrom (start) != 0);
|
||||
// cast start to void, to suppress ‘start’ set but not used
|
||||
// compiler warning in optimized builds
|
||||
(void) start;
|
||||
return i;
|
||||
}
|
||||
|
||||
|
||||
@@ -368,6 +368,9 @@ WifiRemoteStationManager::GetDataMode (Mac48Address address, const WifiMacHeader
|
||||
bool found;
|
||||
found = ConstCast<Packet> (packet)->PeekPacketTag (tag);
|
||||
NS_ASSERT (found);
|
||||
// cast found to void, to suppress 'found' set but not used
|
||||
// compiler warning
|
||||
(void) found;
|
||||
return tag.GetDataMode ();
|
||||
}
|
||||
return DoGetDataMode (Lookup (address, header), fullPacketSize);
|
||||
@@ -383,6 +386,9 @@ WifiRemoteStationManager::GetRtsMode (Mac48Address address, const WifiMacHeader
|
||||
bool found;
|
||||
found = ConstCast<Packet> (packet)->PeekPacketTag (tag);
|
||||
NS_ASSERT (found);
|
||||
// cast found to void, to suppress 'found' set but not used
|
||||
// compiler warning
|
||||
(void) found;
|
||||
return tag.GetRtsMode ();
|
||||
}
|
||||
return DoGetRtsMode (Lookup (address, header));
|
||||
|
||||
Reference in New Issue
Block a user