wifi: silence a compiler warning
This commit is contained in:
@@ -208,6 +208,7 @@ Thresholds
|
||||
RrpaaWifiManager::GetThresholds (RrpaaWifiRemoteStation *station, WifiMode mode) const
|
||||
{
|
||||
NS_LOG_FUNCTION (this << station << mode);
|
||||
struct Thresholds threshold;
|
||||
for (RrpaaThresholdsTable::const_iterator i = station->m_thresholds.begin (); i != station->m_thresholds.end (); i++)
|
||||
{
|
||||
if (mode == i->second)
|
||||
@@ -215,7 +216,8 @@ RrpaaWifiManager::GetThresholds (RrpaaWifiRemoteStation *station, WifiMode mode)
|
||||
return i->first;
|
||||
}
|
||||
}
|
||||
NS_ASSERT (false);
|
||||
NS_ABORT_MSG ("No thresholds for mode " << mode << " found");
|
||||
return threshold; // Silence compiler warning
|
||||
}
|
||||
|
||||
WifiRemoteStation *
|
||||
|
||||
Reference in New Issue
Block a user