summaryrefslogtreecommitdiffstats
path: root/heimdall/source/PrintPitAction.cpp
diff options
context:
space:
mode:
authorBenjamin Dobell <benjamin.dobell+github@glassechidna.com.au>2016-03-06 15:47:06 +0100
committerBenjamin Dobell <benjamin.dobell+github@glassechidna.com.au>2016-03-06 15:47:06 +0100
commit86b7be8329fc5e14e016968b6b1bf22a6ef821d1 (patch)
treeb4744005c1b59b7cff03f8a117e5beec4360ac51 /heimdall/source/PrintPitAction.cpp
parentMerge pull request #330 from kratz00/misc_fixes (diff)
parent- fixed compiler warning: dead initialization (the values are never read) (diff)
downloadHeimdall-86b7be8329fc5e14e016968b6b1bf22a6ef821d1.tar
Heimdall-86b7be8329fc5e14e016968b6b1bf22a6ef821d1.tar.gz
Heimdall-86b7be8329fc5e14e016968b6b1bf22a6ef821d1.tar.bz2
Heimdall-86b7be8329fc5e14e016968b6b1bf22a6ef821d1.tar.lz
Heimdall-86b7be8329fc5e14e016968b6b1bf22a6ef821d1.tar.xz
Heimdall-86b7be8329fc5e14e016968b6b1bf22a6ef821d1.tar.zst
Heimdall-86b7be8329fc5e14e016968b6b1bf22a6ef821d1.zip
Diffstat (limited to 'heimdall/source/PrintPitAction.cpp')
-rw-r--r--heimdall/source/PrintPitAction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/heimdall/source/PrintPitAction.cpp b/heimdall/source/PrintPitAction.cpp
index 12c28d1..7ae8e6b 100644
--- a/heimdall/source/PrintPitAction.cpp
+++ b/heimdall/source/PrintPitAction.cpp
@@ -139,7 +139,7 @@ int PrintPitAction::Execute(int argc, char **argv)
// Load the local pit file into memory.
unsigned char *pitFileBuffer = new unsigned char[localPitFileSize];
- size_t dataRead = fread(pitFileBuffer, 1, localPitFileSize, localPitFile); // dataRead is discarded, it's here to remove warnings.
+ (void)fread(pitFileBuffer, 1, localPitFileSize, localPitFile);
FileClose(localPitFile);
PitData *pitData = new PitData();