]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
put comment about wrong cppcheck warning (apparently got confused about scope of...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 1 Apr 2012 13:46:01 +0000 (13:46 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 1 Apr 2012 13:46:01 +0000 (13:46 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11784 d7cf8633-e32d-0410-b094-e92efae38249

snd_mix.c

index 4f3310bfcf1a83b3ef3eaad472b70fa7e850ceae..29012cc0a3db9147dfc76c1717c20338a2094c00 100644 (file)
--- 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;