aboutsummaryrefslogtreecommitdiffstats
path: root/heimdall/source/SendFilePartPacket.h
diff options
context:
space:
mode:
Diffstat (limited to 'heimdall/source/SendFilePartPacket.h')
-rw-r--r--heimdall/source/SendFilePartPacket.h4
1 files changed, 3 insertions, 1 deletions
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)