From bc0a4eff022969e1338180f87bb1c4fdcc56684c Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Thu, 2 Mar 2017 11:28:04 -0800 Subject: [PATCH] wifi: silence a compiler warning --- src/wifi/model/rraa-wifi-manager.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wifi/model/rraa-wifi-manager.cc b/src/wifi/model/rraa-wifi-manager.cc index b11fa153c..35c6ec555 100644 --- a/src/wifi/model/rraa-wifi-manager.cc +++ b/src/wifi/model/rraa-wifi-manager.cc @@ -174,6 +174,7 @@ WifiRraaThresholds RraaWifiManager::GetThresholds (RraaWifiRemoteStation *station, WifiMode mode) const { NS_LOG_FUNCTION (this << station << mode); + struct WifiRraaThresholds threshold; for (RraaThresholdsTable::const_iterator i = station->m_thresholds.begin (); i != station->m_thresholds.end (); i++) { if (mode == i->second) @@ -181,7 +182,8 @@ RraaWifiManager::GetThresholds (RraaWifiRemoteStation *station, WifiMode mode) c return i->first; } } - NS_ASSERT (false); + NS_ABORT_MSG ("No thresholds for mode " << mode << " found"); + return threshold; // Silence compiler warning } WifiRemoteStation *