From 5a93b56673ed9831ade46900322ea4494325c504 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 26 Jan 2009 08:10:05 -0800 Subject: Fix ignored return value warning --- Alc/wave.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Alc/wave.c') 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"); -- cgit v1.2.3