summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <mvo@ubuntu.com>2014-06-18 16:18:03 +0200
committerMichael Vogt <mvo@ubuntu.com>2014-06-18 16:18:03 +0200
commit1a91569d0a217418596b2c7c3a3af1de77486671 (patch)
treeb3d01c4fc4896666f644c1fe425dac01254fdeab
parent880964da11d0688a92576d98327420d0495453b8 (diff)
apt-pkg/indexrecords.cc: ensure that indexRecords::checkSum::Hash is initialized
-rw-r--r--apt-pkg/indexrecords.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/apt-pkg/indexrecords.cc b/apt-pkg/indexrecords.cc
index 5b53e796d..e97ea0ac9 100644
--- a/apt-pkg/indexrecords.cc
+++ b/apt-pkg/indexrecords.cc
@@ -116,6 +116,14 @@ bool indexRecords::Load(const string Filename) /*{{{*/
indexRecords::checkSum *Sum = new indexRecords::checkSum;
Sum->MetaKeyFilename = Name;
Sum->Size = Size;
+#if __GNUC__ >= 4
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
+ Sum->Hash = HashString(HashString::SupportedHashes()[i],Hash);
+#if __GNUC__ >= 4
+ #pragma GCC diagnostic pop
+#endif
Entries[Name] = Sum;
}
Entries[Name]->Hashes.push_back(HashString(HashString::SupportedHashes()[i],Hash));