Removed default cases causing clang errors, -Wcovered-switch-default.

BUG=
TEST=Bulid with clang version 3.1 (trunk 148911)

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

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1604 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
mflodman@webrtc.org
2012-02-06 10:11:25 +00:00
parent 5eeaa38573
commit c80d9d9361
32 changed files with 48 additions and 230 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
@@ -58,8 +58,6 @@ WebRtc_Word32 WebRtcIsac_InitBandwidthEstimator(
bwest_str->send_bw_avg = INIT_BN_EST_SWB;
break;
}
default:
return -1;
}
switch(decoderSampRate)
@@ -86,8 +84,6 @@ WebRtc_Word32 WebRtcIsac_InitBandwidthEstimator(
bwest_str->rec_header_rate = INIT_HDR_RATE_SWB;
break;
}
default:
return -1;
}
bwest_str->prev_rec_rtp_number = 0;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
@@ -676,8 +676,6 @@ WebRtc_Word16 WebRtcIsac_Encode(
streamLenUB = 0;
break;
}
default:
return -1;
}
if((streamLenUB < 0) &&
@@ -1666,8 +1664,6 @@ WebRtc_Word16 WebRtcIsac_DecodePlc(
numSamples = 960 * noOfLostFrames;
break;
}
default:
return -1;
}
/* Set output samples to zero */

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
@@ -417,10 +417,6 @@ ACMNetEQ::SetPlayoutMode(
case streaming:
playoutMode = kPlayoutStreaming;
break;
default:
WEBRTC_TRACE(webrtc::kTraceError, webrtc::kTraceAudioCoding, _id,
"SetPlayoutMode: NetEq Error playout mode not recognized");
return -1;
}
if(WebRtcNetEQ_SetPlayoutMode(_inst[idx], playoutMode) < 0)
{
@@ -1243,10 +1239,6 @@ ACMNetEQ::AddSlave(
case streaming:
playoutMode = kPlayoutStreaming;
break;
default:
WEBRTC_TRACE(webrtc::kTraceError, webrtc::kTraceAudioCoding, _id,
"AddSlave: NetEq Error, playout mode not recognized");
return -1;
}
if(WebRtcNetEQ_SetPlayoutMode(_inst[slaveIdx], playoutMode) < 0)
{

View File

@@ -396,13 +396,6 @@ AudioCodingModuleImpl::Process()
_isFirstRED = true;
break;
}
default:
{
WEBRTC_TRACE(webrtc::kTraceError, webrtc::kTraceAudioCoding, _id,
"Process(): Wrong Encoding-Type");
return -1;
}
}
hasDataToSend = true;
_previousPayloadType = currentPayloadType;