windows: Don't let Visual Studio insert an implicit dependency on memset().
authorRyan C. Gordon <icculus@icculus.org>
Tue, 11 Jun 2019 02:08:31 -0400
changeset 128254fb5e61382b7
parent 12824 2f882d435abf
child 12826 bc7022754e83
windows: Don't let Visual Studio insert an implicit dependency on memset().

Fixes Bugzilla #4662.
src/audio/SDL_wave.c
     1.1 --- a/src/audio/SDL_wave.c	Tue Jun 11 01:14:24 2019 -0400
     1.2 +++ b/src/audio/SDL_wave.c	Tue Jun 11 02:08:31 2019 -0400
     1.3 @@ -1039,7 +1039,7 @@
     1.4      int result;
     1.5      size_t bytesleft, outputsize;
     1.6      WaveChunk *chunk = &file->chunk;
     1.7 -    ADPCM_DecoderState state = {0};
     1.8 +    ADPCM_DecoderState state;
     1.9      Sint8 *cstate;
    1.10  
    1.11      if (chunk->size != chunk->length) {
    1.12 @@ -1056,6 +1056,7 @@
    1.13          return 0;
    1.14      }
    1.15  
    1.16 +    SDL_zero(state);
    1.17      state.channels = file->format.channels;
    1.18      state.blocksize = file->format.blockalign;
    1.19      state.blockheadersize = (size_t)state.channels * 4;