summaryrefslogtreecommitdiff
path: root/apt-inst
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2015-08-31 17:48:54 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2015-08-31 17:48:54 +0200
commitb830f576a81751f4b04bc889fa82aaca0e6fc3ea (patch)
treeb44913a079dd19032ebb1bd40d93447c30778f4d /apt-inst
parentb2640c0afea4c3803ab46b130c960ea3029eb14d (diff)
fix some unused parameter/variable warnings
Reported-By: gcc Git-Dch: Ignore
Diffstat (limited to 'apt-inst')
-rw-r--r--apt-inst/contrib/extracttar.cc16
-rw-r--r--apt-inst/contrib/extracttar.h5
2 files changed, 11 insertions, 10 deletions
diff --git a/apt-inst/contrib/extracttar.cc b/apt-inst/contrib/extracttar.cc
index c21a336f0..8be61c5ad 100644
--- a/apt-inst/contrib/extracttar.cc
+++ b/apt-inst/contrib/extracttar.cc
@@ -73,18 +73,18 @@ ExtractTar::ExtractTar(FileFd &Fd,unsigned long long Max,string DecompressionPro
ExtractTar::~ExtractTar()
{
// Error close
- Done(true);
+ Done();
}
/*}}}*/
// ExtractTar::Done - Reap the gzip sub process /*{{{*/
-// ---------------------------------------------------------------------
-/* If the force flag is given then error messages are suppressed - this
- means we hit the end of the tar file but there was still gzip data. */
-bool ExtractTar::Done(bool Force)
+bool ExtractTar::Done(bool)
+{
+ return Done();
+}
+bool ExtractTar::Done()
{
return InFd.Close();
}
-
/*}}}*/
// ExtractTar::StartGzip - Startup gzip /*{{{*/
// ---------------------------------------------------------------------
@@ -151,7 +151,7 @@ bool ExtractTar::Go(pkgDirStream &Stream)
/* Check for a block of nulls - in this case we kill gzip, GNU tar
does this.. */
if (NewSum == ' '*sizeof(Tar->Checksum))
- return Done(true);
+ return Done();
if (NewSum != CheckSum)
return _error->Error(_("Tar checksum failed, archive corrupted"));
@@ -306,6 +306,6 @@ bool ExtractTar::Go(pkgDirStream &Stream)
LastLongLink.erase();
}
- return Done(false);
+ return Done();
}
/*}}}*/
diff --git a/apt-inst/contrib/extracttar.h b/apt-inst/contrib/extracttar.h
index 22bb69e66..871946edb 100644
--- a/apt-inst/contrib/extracttar.h
+++ b/apt-inst/contrib/extracttar.h
@@ -48,8 +48,9 @@ class ExtractTar
// Fork and reap gzip
bool StartGzip();
- bool Done(bool Force);
-
+ bool Done();
+ APT_DEPRECATED bool Done(bool Force); // Force is ignored – and the default behaviour
+
public:
bool Go(pkgDirStream &Stream);