From febbe5e33b2105c8f40006a4b92ab5aa169aa03c Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Mon, 15 Apr 2019 01:56:20 +0200 Subject: Follow gcc-9 -Wnoexcept suggestion for FileChunk constructor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- apt-pkg/tagfile.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 chunks; -- cgit v1.2.3