wifi: silence a compiler warning

This commit is contained in:
Tom Henderson
2017-02-16 21:36:23 -08:00
parent 03dcf5fa45
commit 95ca1a4381

View File

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