From: divverent Date: Sun, 1 Apr 2012 13:46:01 +0000 (+0000) Subject: put comment about wrong cppcheck warning (apparently got confused about scope of... X-Git-Tag: xonotic-v0.7.0~171 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=49bc1490d8ff026aefdf2d49b741e43baeef0010;p=xonotic%2Fdarkplaces.git put comment about wrong cppcheck warning (apparently got confused about scope of different "channel" vars) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11784 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=0b82907912e90cfa8ad0595bf3ec7e960b753bb0 --- diff --git a/snd_mix.c b/snd_mix.c index 4f3310bf..29012cc0 100644 --- a/snd_mix.c +++ b/snd_mix.c @@ -301,7 +301,7 @@ void S_MixToBuffer(void *stream, unsigned int bufferframes) // paint in the channels. // channels with zero volumes still advance in time but don't paint. - ch = channels; + ch = channels; // cppcheck complains here but it is wrong, channels is a channel_t[MAX_CHANNELS] and not an int for (channelindex = 0;channelindex < (int)total_channels;channelindex++, ch++) { sfx = ch->sfx;