Browse Source

Follow gcc-9 -Wnoexcept suggestion for FileChunk constructor

warning: but ‘pkgTagFilePrivate::FileChunk::FileChunk(bool, size_t)’
does not throw; perhaps it should be declared ‘noexcept’ [-Wnoexcept]

Reported-By: gcc-9
Gbp-Dch: Ignore
tags/devuan/2.0.1+devuan1
David Kalnischkies 1 year ago
parent
commit
febbe5e33b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      apt-pkg/tagfile.cc

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

@@ -69,7 +69,7 @@ public:
{
bool const good;
size_t length;
FileChunk(bool const pgood, size_t const plength) : good(pgood), length(plength) {}
FileChunk(bool const pgood, size_t const plength) noexcept : good(pgood), length(plength) {}
};
std::list<FileChunk> chunks;



Loading…
Cancel
Save