diff options
author | Benjamin Dobell <benjamin.dobell+github@glassechidna.com.au> | 2016-03-07 01:47:06 +1100 |
---|---|---|
committer | Benjamin Dobell <benjamin.dobell+github@glassechidna.com.au> | 2016-03-07 01:47:06 +1100 |
commit | 86b7be8329fc5e14e016968b6b1bf22a6ef821d1 (patch) | |
tree | b4744005c1b59b7cff03f8a117e5beec4360ac51 /heimdall/source/SendFilePartPacket.h | |
parent | 2bab8d9473cc237f6665a9cfe784942e0a2038e8 (diff) | |
parent | 05d4c747a97124dbf92af9f718fefe475074ce41 (diff) | |
download | external_heimdall-86b7be8329fc5e14e016968b6b1bf22a6ef821d1.zip external_heimdall-86b7be8329fc5e14e016968b6b1bf22a6ef821d1.tar.gz external_heimdall-86b7be8329fc5e14e016968b6b1bf22a6ef821d1.tar.bz2 |
Merge pull request #332 from kratz00/unused_variables
- fixed compiler warning: dead initialization (the values are never read)
Diffstat (limited to 'heimdall/source/SendFilePartPacket.h')
-rw-r--r-- | heimdall/source/SendFilePartPacket.h | 4 |
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)
|