MT32: Fix Set-But-Unused Compiler Warning.

This commit is contained in:
D G Turner 2017-01-14 09:14:02 +00:00
parent 72790f90c2
commit 77818e9683
2 changed files with 2 additions and 5 deletions

View File

@ -24,11 +24,11 @@
namespace MT32Emu {
AbstractFile::AbstractFile() : sha1DigestCalculated(false), reserved(NULL) {
AbstractFile::AbstractFile() : sha1DigestCalculated(false) {
sha1Digest[0] = 0;
}
AbstractFile::AbstractFile(const SHA1Digest &useSHA1Digest) : sha1DigestCalculated(true), reserved(NULL) {
AbstractFile::AbstractFile(const SHA1Digest &useSHA1Digest) : sha1DigestCalculated(true) {
memcpy(sha1Digest, useSHA1Digest, sizeof(SHA1Digest) - 1);
sha1Digest[sizeof(SHA1Digest) - 1] = 0; // Ensure terminator char.
}

View File

@ -49,9 +49,6 @@ protected:
private:
bool sha1DigestCalculated;
SHA1Digest sha1Digest;
// Binary compatibility helper.
void *reserved;
};
class MT32EMU_EXPORT ArrayFile : public AbstractFile {