瀏覽代碼

Remove dead assignments (#980)

The result of `success` is actually never used. Either we should check
for it and return or remove it. I assume just checking the last one is
okay.
pull/982/head
Michael Vetter 5 年之前
committed by Ray
父節點
當前提交
047f093503
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. +3
    -3
      src/raudio.c

+ 3
- 3
src/raudio.c 查看文件

@ -1870,9 +1870,9 @@ static int SaveWAV(Wave wave, const char *fileName)
waveData.subChunkID[3] = 'a'; waveData.subChunkID[3] = 'a';
waveData.subChunkSize = dataSize; waveData.subChunkSize = dataSize;
success = fwrite(&riffHeader, sizeof(RiffHeader), 1, wavFile);
success = fwrite(&waveFormat, sizeof(WaveFormat), 1, wavFile);
success = fwrite(&waveData, sizeof(WaveData), 1, wavFile);
fwrite(&riffHeader, sizeof(RiffHeader), 1, wavFile);
fwrite(&waveFormat, sizeof(WaveFormat), 1, wavFile);
fwrite(&waveData, sizeof(WaveData), 1, wavFile);
success = fwrite(wave.data, dataSize, 1, wavFile); success = fwrite(wave.data, dataSize, 1, wavFile);

Loading…
取消
儲存