From e2ea6b63d333e6999d855a026a005726067c38ac Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Fri, 30 Oct 2015 16:44:27 +0100 Subject: reenable gcc warnings for deprecated functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the meantime the strange warnings disappeared, so we can get back to showing them – and fix the one occurance which creeped in in the meantime. Git-Dch: Ignore --- ftparchive/byhash.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ftparchive/byhash.cc') diff --git a/ftparchive/byhash.cc b/ftparchive/byhash.cc index 04f8f1629..0a38457c0 100644 --- a/ftparchive/byhash.cc +++ b/ftparchive/byhash.cc @@ -48,9 +48,8 @@ void DeleteAllButMostRecent(std::string dir, int KeepFiles) // Takes a input filename (e.g. binary-i386/Packages) and a hashstring // of the Input data and transforms it into a suitable by-hash filename -std::string GenByHashFilename(std::string Input, HashString h) +std::string GenByHashFilename(std::string ByHashOutputFile, HashString const &h) { - std::string ByHashOutputFile = Input; std::string const ByHash = "/by-hash/" + h.HashType() + "/" + h.HashValue(); size_t trailing_slash = ByHashOutputFile.find_last_of("/"); if (trailing_slash == std::string::npos) -- cgit v1.2.3