aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-10-03 17:06:08 +0200
committerRay <raysan5@gmail.com>2019-10-03 17:06:08 +0200
commit047f093503de31217738c15c0bec2ae2a25c5f18 (patch)
tree20b3814c8e17edbaf62b4d226fa5f5a6e4b9b46e
parentdf84f93938588793095df39d7998a03b11bc98d4 (diff)
downloadraylib-047f093503de31217738c15c0bec2ae2a25c5f18.tar.gz
raylib-047f093503de31217738c15c0bec2ae2a25c5f18.zip
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.
-rw-r--r--src/raudio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/raudio.c b/src/raudio.c
index 6760b727..447e5080 100644
--- a/src/raudio.c
+++ b/src/raudio.c
@@ -1870,9 +1870,9 @@ static int SaveWAV(Wave wave, const char *fileName)
waveData.subChunkID[3] = 'a';
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);