From a6c7b262212d56a4ad37e6475f96152296ab1d0c Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Thu, 14 Dec 2017 21:44:40 +0100 Subject: remove pointless APT_PURE from void functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Earlier gcc versions used to complain that you should add them althrough there isn't a lot of point to it if you think about it, but now gcc (>= 8) complains about the attribute being present. warning: ‘pure’ attribute on function returning ‘void’ [-Wattributes] Reported-By: gcc -Wattributes Gbp-Dch: Ignore --- apt-pkg/cachefilter.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apt-pkg/cachefilter.cc') diff --git a/apt-pkg/cachefilter.cc b/apt-pkg/cachefilter.cc index c49f5dfd0..eadbb98c7 100644 --- a/apt-pkg/cachefilter.cc +++ b/apt-pkg/cachefilter.cc @@ -27,8 +27,8 @@ namespace APT { APT_HIDDEN std::unordered_map> ArchToTupleMap; namespace CacheFilter { -APT_PURE Matcher::~Matcher() {} -APT_PURE PackageMatcher::~PackageMatcher() {} +Matcher::~Matcher() {} +PackageMatcher::~PackageMatcher() {} // Name matches RegEx /*{{{*/ PackageNameMatchesRegEx::PackageNameMatchesRegEx(std::string const &Pattern) { -- cgit v1.2.3