From 8ecd0e8f3dce4e21f8d6bb5f6807d00044d1558d Mon Sep 17 00:00:00 2001 From: "turajs@google.com" Date: Tue, 30 Aug 2011 20:29:50 +0000 Subject: [PATCH] Remove Clang warning for PCM16B. Review URL: http://webrtc-codereview.appspot.com/137006 git-svn-id: http://webrtc.googlecode.com/svn/trunk@491 4adac7df-926f-26a2-2b94-8c16560cd09d --- src/modules/audio_coding/codecs/PCM16B/main/source/pcm16b.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/audio_coding/codecs/PCM16B/main/source/pcm16b.c b/src/modules/audio_coding/codecs/PCM16B/main/source/pcm16b.c index 21ee7665db..539135f719 100644 --- a/src/modules/audio_coding/codecs/PCM16B/main/source/pcm16b.c +++ b/src/modules/audio_coding/codecs/PCM16B/main/source/pcm16b.c @@ -66,6 +66,8 @@ WebRtc_Word16 WebRtcPcm16b_DecodeW16(void *inst, WebRtc_Word16 *speechOut16b, WebRtc_Word16* speechType) { + // Avoid warning + (void)(inst = NULL); #ifdef WEBRTC_BIG_ENDIAN WEBRTC_SPL_MEMCPY_W8(speechOut16b, speechIn16b, ((len*sizeof(WebRtc_Word16)+1)>>1)); #else @@ -97,4 +99,3 @@ WebRtc_Word16 WebRtcPcm16b_Decode(unsigned char *speech8b, } return(samples); } -