To remove warnings found by clang

Review URL: http://webrtc-codereview.appspot.com/113005

git-svn-id: http://webrtc.googlecode.com/svn/trunk@392 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
turaj@webrtc.org 2011-08-17 20:25:36 +00:00
parent ebeb5a656b
commit ca758c268e
3 changed files with 7 additions and 8 deletions

View File

@ -21,7 +21,7 @@ WebRtc_Word16 WebRtcG711_EncodeA(void *state,
WebRtc_UWord16 tempVal, tempVal2;
// Set to avoid getting warnings
state = state;
state = NULL;
// Sanity check of input length
if (len < 0) {
@ -51,7 +51,7 @@ WebRtc_Word16 WebRtcG711_EncodeA(void *state,
return (len);
}
WebRtc_Word16 WebRtcG711_EncodeU(void *state,
WebRtc_Word16 WebRtcG711_EncodeU(void *state,
WebRtc_Word16 *speechIn,
WebRtc_Word16 len,
WebRtc_Word16 *encoded)
@ -60,7 +60,7 @@ WebRtc_Word16 WebRtcG711_EncodeU(void *state,
WebRtc_UWord16 tempVal;
// Set to avoid getting warnings
state = state;
state = NULL;
// Sanity check of input length
if (len < 0) {
@ -98,7 +98,7 @@ WebRtc_Word16 WebRtcG711_DecodeA(void *state,
WebRtc_UWord16 tempVal;
// Set to avoid getting warnings
state = state;
state = NULL;
// Sanity check of input length
if (len < 0) {
@ -136,7 +136,7 @@ WebRtc_Word16 WebRtcG711_DecodeU(void *state,
WebRtc_UWord16 tempVal;
// Set to avoid getting warnings
state = state;
state = NULL;
// Sanity check of input length
if (len < 0) {

View File

@ -261,7 +261,7 @@ int WebRtcIsacfix_EncodeImpl(WebRtc_Word16 *in,
// then the limit at this point should be half of the assigned value
payloadLimitBytes = ISACenc_obj->payloadLimitBytes60 >> 1;
}
else if ((frame_mode == 0))
else if (frame_mode == 0)
{
// it is a 30ms frame
payloadLimitBytes = (ISACenc_obj->payloadLimitBytes30) - 3;
@ -492,7 +492,6 @@ int WebRtcIsacfix_EncodeStoredData(ISACFIX_EncInst_t *ISACenc_obj,
int status;
WebRtc_Word16 BWno = BWnumber;
int stream_length = 0;
int usefulstr_len;
WebRtc_Word16 model;
const WebRtc_UWord16 *Q_PitchGain_cdf_ptr[1];

View File

@ -1104,7 +1104,7 @@ WebRtc_Word16 WebRtcIsac_DecoderInit(
}
}
if((instISAC->initFlag && BIT_MASK_ENC_INIT) !=
if((instISAC->initFlag & BIT_MASK_ENC_INIT) !=
BIT_MASK_ENC_INIT)
{
WebRtcIsac_InitBandwidthEstimator(&instISAC->bwestimator_obj,