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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user