Fix unused warnings release (#3677)

* Release build fix for Windows
* Release build fix for Android
* Release build fix for Windows
* Release build fix for Android
* Release build fix for Linux
* Release build fix for Mac
* Release build fix for iOS

Signed-off-by: Steve Pham <spham@amazon.com>
This commit is contained in:
Steve Pham
2021-08-30 13:10:41 -07:00
committed by GitHub
parent da6bdd5b43
commit fa0f2a1007
94 changed files with 150 additions and 130 deletions
@@ -1452,7 +1452,7 @@ void CarrierThread::NotifyRateUpdate(ThreadConnection* conn)
float rtt = lifetime.m_rtt > 1.f ? lifetime.m_rtt : 100.f; //For unknown RTT use conservative 100ms to avoid buffer bloat
//Note: using lifetime RTT as stand-in for smoothed RTT
float ratef = (1010 * (cState.m_congestionWindow)) / rtt; //Add 10% to allow rate increases until buffer fills up
constexpr float max_rate = azlossy_cast<float>(0x7FFFFFFF);
[[maybe_unused]] constexpr float max_rate = azlossy_cast<float>(0x7FFFFFFF);
AZ_Assert(ratef <= max_rate, " ratef %f > 0x7FFFFFFF", ratef);
bytesPerSecond = static_cast<AZ::u32>(ratef);