DCHECK: Reference condition parameter in release builds

So that caller's won't get warnings about unused variables for
variables that are only used in calls to DCHECK, such as

  int x = ...
  DCHECK_EQ(x, 17);

R=andrew@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/31169004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@7858 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
kwiberg@webrtc.org
2014-12-10 08:45:47 +00:00
parent ff1a3e36bd
commit 3148060e61
2 changed files with 17 additions and 14 deletions

View File

@@ -60,7 +60,7 @@ bool AudioEncoderIlbc::EncodeInternal(uint32_t timestamp,
EncodedInfo* info) {
const size_t expected_output_len =
num_10ms_frames_per_packet_ == 2 ? 38 : 50;
CHECK_GE(max_encoded_bytes, expected_output_len);
DCHECK_GE(max_encoded_bytes, expected_output_len);
// Save timestamp if starting a new packet.
if (num_10ms_frames_buffered_ == 0)