Browse Source

fix: warning: extra ‘;’ [-Wpedantic]

Reported-By: gcc -Wpedantic
Git-Dch: Ignore
tags/debian/1.1.exp4
David Kalnischkies 6 years ago
parent
commit
bf3ad91fdf
5 changed files with 13 additions and 13 deletions
  1. +1
    -1
      apt-pkg/packagemanager.cc
  2. +2
    -2
      apt-pkg/packagemanager.h
  3. +3
    -3
      ftparchive/cachedb.cc
  4. +2
    -2
      ftparchive/cachedb.h
  5. +5
    -5
      ftparchive/contents.cc

+ 1
- 1
apt-pkg/packagemanager.cc View File

@@ -1080,7 +1080,7 @@ pkgPackageManager::DoInstallPostFork(APT::Progress::PackageManager *progress)
return Failed;
return Res;
};
}
#else
pkgPackageManager::OrderResult
pkgPackageManager::DoInstallPostFork(int statusFd)


+ 2
- 2
apt-pkg/packagemanager.h View File

@@ -47,8 +47,8 @@ class pkgRecords;
namespace APT {
namespace Progress {
class PackageManager;
};
};
}
}


class pkgPackageManager : protected pkgCache::Namespace


+ 3
- 3
ftparchive/cachedb.cc View File

@@ -34,18 +34,18 @@
#include <apti18n.h>
/*}}}*/

CacheDB::CacheDB(std::string const &DB)
CacheDB::CacheDB(std::string const &DB)
: Dbp(0), Fd(NULL), DebFile(0)
{
TmpKey[0]='\0';
ReadyDB(DB);
};
}

CacheDB::~CacheDB()
{
ReadyDB();
delete DebFile;
};
}

// CacheDB::ReadyDB - Ready the DB2 /*{{{*/
// ---------------------------------------------------------------------


+ 2
- 2
ftparchive/cachedb.h View File

@@ -99,8 +99,8 @@ class CacheDB

// Stat info stored in the DB, Fixed types since it is written to disk.
enum FlagList {FlControl = (1<<0),FlMD5=(1<<1),FlContents=(1<<2),
FlSize=(1<<3), FlSHA1=(1<<4), FlSHA256=(1<<5),
FlSHA512=(1<<6), FlSource=(1<<7),
FlSize=(1<<3), FlSHA1=(1<<4), FlSHA256=(1<<5),
FlSHA512=(1<<6), FlSource=(1<<7)
};

// the on-disk format changed (FileSize increased to 64bit) in


+ 5
- 5
ftparchive/contents.cc View File

@@ -302,17 +302,17 @@ void GenContents::DoPrint(FILE *Out,GenContents::Node *Top, char *Buf)
DoPrint(Out,Top->BTreeRight,Buf);
}
/*}}}*/
// ContentsExtract Constructor /*{{{*/
// ContentsExtract Constructor /*{{{*/
ContentsExtract::ContentsExtract()
: Data(0), MaxSize(0), CurSize(0)
: Data(0), MaxSize(0), CurSize(0)
{
};
}
/*}}}*/
// ContentsExtract Destructor /*{{{*/
// ContentsExtract Destructor /*{{{*/
ContentsExtract::~ContentsExtract()
{
free(Data);
};
}
/*}}}*/
// ContentsExtract::Read - Read the archive /*{{{*/
// ---------------------------------------------------------------------


Loading…
Cancel
Save