From: David Kalnischkies Date: Thu, 8 May 2014 17:03:33 +0000 (+0200) Subject: mark as Automatic/Downloadable pure as gcc suggests X-Git-Tag: 1.1.exp1~19^2~14 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/0e6fe58ea765e91a9a7b54cc6fd236a8cb839b66?ds=sidebyside mark as Automatic/Downloadable pure as gcc suggests Git-Dch: Ignore Reported-By: gcc --- diff --git a/apt-pkg/pkgcache.cc b/apt-pkg/pkgcache.cc index 5088712a2..c4ba9e24a 100644 --- a/apt-pkg/pkgcache.cc +++ b/apt-pkg/pkgcache.cc @@ -822,7 +822,7 @@ int pkgCache::VerIterator::CompareVer(const VerIterator &B) const // VerIterator::Downloadable - Checks if the version is downloadable /*{{{*/ // --------------------------------------------------------------------- /* */ -bool pkgCache::VerIterator::Downloadable() const +APT_PURE bool pkgCache::VerIterator::Downloadable() const { VerFileIterator Files = FileList(); for (; Files.end() == false; ++Files) @@ -835,7 +835,7 @@ bool pkgCache::VerIterator::Downloadable() const // --------------------------------------------------------------------- /* This checks to see if any of the versions files are not NotAutomatic. True if this version is selectable for automatic installation. */ -bool pkgCache::VerIterator::Automatic() const +APT_PURE bool pkgCache::VerIterator::Automatic() const { VerFileIterator Files = FileList(); for (; Files.end() == false; ++Files)