Add back return statement after FATAL()
Some compilers do not accept that non-void functions end with FATAL()
instead of a return statement. This change adds back a few return
statements that were removed in r8463.
BUG=4344
R=phoglund@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/42519004
Cr-Commit-Position: refs/heads/master@{#8509}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8509 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc b/webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc
index 694900a..542aaba 100644
--- a/webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc
+++ b/webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc
@@ -736,6 +736,7 @@
int AudioCodingModuleImpl::SetReceivedEstimatedBandwidth(int bw) {
CriticalSectionScoped lock(acm_crit_sect_);
FATAL() << "Dead code?";
+ return -1;
// return codecs_[current_send_codec_idx_]->SetEstimatedBandwidth(bw);
}
@@ -1365,6 +1366,7 @@
}
FATAL() << "Dead code?";
+ return -1;
// return codecs_[current_send_codec_idx_]->ConfigISACBandwidthEstimator(
// frame_size_ms, rate_bit_per_sec, enforce_frame_size);
}
@@ -1426,6 +1428,7 @@
return -1;
}
FATAL() << "Dead code?";
+ return -1;
// int status;
// status = codecs_[current_send_codec_idx_]->REDPayloadISAC(isac_rate,
// isac_bw_estimate,