From 1e2894839a1458c983b7387d4b2b8a453b726c9c Mon Sep 17 00:00:00 2001 From: Benjamin Dobell Date: Wed, 1 Jun 2011 16:41:50 +1000 Subject: More linux-specific fixes/changes. --- heimdall/source/SendFilePartPacket.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'heimdall/source/SendFilePartPacket.h') diff --git a/heimdall/source/SendFilePartPacket.h b/heimdall/source/SendFilePartPacket.h index 0b41830..7734e2a 100644 --- a/heimdall/source/SendFilePartPacket.h +++ b/heimdall/source/SendFilePartPacket.h @@ -51,7 +51,9 @@ namespace Heimdall // min(fileSize, size) int bytesToRead = (fileSize < size) ? fileSize - position : size; - fread(data, 1, bytesToRead, file); + + // bytesRead is discarded (it's just there to stop GCC warnings) + int bytesRead = fread(data, 1, bytesToRead, file); } void Pack(void) -- cgit v1.1