summaryrefslogtreecommitdiffstats
path: root/heimdall/source/SendFilePartPacket.h
diff options
context:
space:
mode:
authorSteffen Pankratz <kratz00@gmx.de>2016-03-06 13:45:37 +0100
committerSteffen Pankratz <kratz00@gmx.de>2016-03-06 13:45:37 +0100
commit05d4c747a97124dbf92af9f718fefe475074ce41 (patch)
treeb4744005c1b59b7cff03f8a117e5beec4360ac51 /heimdall/source/SendFilePartPacket.h
parentMerge pull request #330 from kratz00/misc_fixes (diff)
downloadHeimdall-05d4c747a97124dbf92af9f718fefe475074ce41.tar
Heimdall-05d4c747a97124dbf92af9f718fefe475074ce41.tar.gz
Heimdall-05d4c747a97124dbf92af9f718fefe475074ce41.tar.bz2
Heimdall-05d4c747a97124dbf92af9f718fefe475074ce41.tar.lz
Heimdall-05d4c747a97124dbf92af9f718fefe475074ce41.tar.xz
Heimdall-05d4c747a97124dbf92af9f718fefe475074ce41.tar.zst
Heimdall-05d4c747a97124dbf92af9f718fefe475074ce41.zip
Diffstat (limited to '')
-rw-r--r--heimdall/source/SendFilePartPacket.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/heimdall/source/SendFilePartPacket.h b/heimdall/source/SendFilePartPacket.h
index 38e9dbe..561bf58 100644
--- a/heimdall/source/SendFilePartPacket.h
+++ b/heimdall/source/SendFilePartPacket.h
@@ -46,9 +46,7 @@ namespace Heimdall
// min(fileSize, size)
unsigned int bytesToRead = (fileSize < size) ? fileSize - position : size;
-
- // bytesRead is discarded (it's just there to stop GCC warnings)
- unsigned int bytesRead = fread(data, 1, bytesToRead, file);
+ (void)fread(data, 1, bytesToRead, file);
}
SendFilePartPacket(unsigned char *buffer, unsigned int size) : OutboundPacket(size)