From 77818e968392301eacf718a56518ea1b63815c72 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Sat, 14 Jan 2017 09:14:02 +0000 Subject: MT32: Fix Set-But-Unused Compiler Warning. --- audio/softsynth/mt32/File.cpp | 4 ++-- audio/softsynth/mt32/File.h | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'audio/softsynth/mt32') diff --git a/audio/softsynth/mt32/File.cpp b/audio/softsynth/mt32/File.cpp index 395a893358..333230b61c 100755 --- a/audio/softsynth/mt32/File.cpp +++ b/audio/softsynth/mt32/File.cpp @@ -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. } diff --git a/audio/softsynth/mt32/File.h b/audio/softsynth/mt32/File.h index c9a7d582b4..f29d4f3c42 100755 --- a/audio/softsynth/mt32/File.h +++ b/audio/softsynth/mt32/File.h @@ -49,9 +49,6 @@ protected: private: bool sha1DigestCalculated; SHA1Digest sha1Digest; - - // Binary compatibility helper. - void *reserved; }; class MT32EMU_EXPORT ArrayFile : public AbstractFile { -- cgit v1.2.3