From 1eed08c7ae15f7965510a29806ba7702b7643e2e Mon Sep 17 00:00:00 2001 From: riccardom Date: Tue, 17 Mar 2009 19:23:21 +0000 Subject: [PATCH] Shut up gcc warnings for ignored fwrite returns. Frankly, who cares about bmp images :P --- desmume/src/NDSSystem.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/desmume/src/NDSSystem.cpp b/desmume/src/NDSSystem.cpp index f5a723ad9..4d9512411 100644 --- a/desmume/src/NDSSystem.cpp +++ b/desmume/src/NDSSystem.cpp @@ -1136,10 +1136,10 @@ int NDS_WriteBMP_32bppBuffer(int width, int height, const void* buf, const char { u8* pixel = (u8*)buf + (height-i-1)*width*4; pixel += (x*4); - fwrite(pixel+2,1,1,file); - fwrite(pixel +1,1,1,file); - fwrite(pixel +0,1,1,file); - fwrite(pixel +3,1,1,file); + elems_written += fwrite(pixel+2,1,1,file); + elems_written += fwrite(pixel+1,1,1,file); + elems_written += fwrite(pixel+0,1,1,file); + elems_written += fwrite(pixel+3,1,1,file); } fclose(file);