Introduce RTC_CHECK_NOTREACHED(), an always-checking RTC_NOTREACHED()
And use it in a few places that were using RTC_CHECK(false) or FATAL() to do the exact same job. There should be no change in behavior. Bug: none Change-Id: I36d5e6bcf35fd41534e08a8c879fa0811b4f1967 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/191963 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Commit-Queue: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#32567}
This commit is contained in:
@ -31,7 +31,7 @@ std::string NoiseSuppressionLevelToString(
|
||||
case AudioProcessing::Config::NoiseSuppression::Level::kVeryHigh:
|
||||
return "VeryHigh";
|
||||
}
|
||||
RTC_CHECK(false);
|
||||
RTC_CHECK_NOTREACHED();
|
||||
}
|
||||
|
||||
std::string GainController1ModeToString(const Agc1Config::Mode& mode) {
|
||||
@ -43,7 +43,7 @@ std::string GainController1ModeToString(const Agc1Config::Mode& mode) {
|
||||
case Agc1Config::Mode::kFixedDigital:
|
||||
return "FixedDigital";
|
||||
}
|
||||
RTC_CHECK(false);
|
||||
RTC_CHECK_NOTREACHED();
|
||||
}
|
||||
|
||||
std::string GainController2LevelEstimatorToString(
|
||||
@ -54,7 +54,7 @@ std::string GainController2LevelEstimatorToString(
|
||||
case Agc2Config::LevelEstimator::kPeak:
|
||||
return "Peak";
|
||||
}
|
||||
RTC_CHECK(false);
|
||||
RTC_CHECK_NOTREACHED();
|
||||
}
|
||||
|
||||
int GetDefaultMaxInternalRate() {
|
||||
|
||||
Reference in New Issue
Block a user