aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-01-26 08:10:05 -0800
committerChris Robinson <[email protected]>2009-01-26 08:10:05 -0800
commit5a93b56673ed9831ade46900322ea4494325c504 (patch)
tree8ccbbb33ab819e9dfeb039b0f0283b63588f7f6a /Alc
parent1f4c69c17ab86d1904990b12100452692c5d28b2 (diff)
Fix ignored return value warning
Diffstat (limited to 'Alc')
-rw-r--r--Alc/wave.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/wave.c b/Alc/wave.c
index 747155b6..cba9fb13 100644
--- a/Alc/wave.c
+++ b/Alc/wave.c
@@ -50,6 +50,7 @@ static ALuint WaveProc(ALvoid *ptr)
ALuint frameSize;
ALuint now, last;
size_t WriteCnt;
+ size_t fs;
ALuint avail;
union {
short s;
@@ -89,7 +90,7 @@ static ALuint WaveProc(ALvoid *ptr)
fputc(bytes[i^1], data->f);
}
else
- fwrite(data->buffer, frameSize, WriteCnt, data->f);
+ fs = fwrite(data->buffer, frameSize, WriteCnt, data->f);
if(ferror(data->f))
{
AL_PRINT("Error writing to file\n");