summaryrefslogtreecommitdiff
path: root/apt-pkg/tagfile.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2019-04-15 01:56:20 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2019-04-16 12:59:54 +0200
commitfebbe5e33b2105c8f40006a4b92ab5aa169aa03c (patch)
tree9fc8af9ed59227236f73032ab4e3a259fef6568f /apt-pkg/tagfile.cc
parenta967ba05416db27127f9a0ba85bb92377e6bb73e (diff)
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
Diffstat (limited to 'apt-pkg/tagfile.cc')
-rw-r--r--apt-pkg/tagfile.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/tagfile.cc b/apt-pkg/tagfile.cc
index 4b6a5e78b..bbece1d7e 100644
--- a/apt-pkg/tagfile.cc
+++ b/apt-pkg/tagfile.cc
@@ -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;