diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2021-12-11 11:57:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-11 11:57:32 +0100 |
commit | 0848eb7384b5ee31442c5102c60363bc1190804a (patch) | |
tree | 87bfe7484f54023265da902e4cfef6b2384d2eb8 /vespalib/src/tests | |
parent | 60b142c007083c773e910b44cc57d65e7f2c9274 (diff) | |
parent | 0109b1a5f3e300cbeb151a91bef027b406cace39 (diff) |
Merge pull request #20462 from vespa-engine/toregge/add-noexcept-specifiers
Add noexcept specifiers.
Diffstat (limited to 'vespalib/src/tests')
3 files changed, 3 insertions, 3 deletions
diff --git a/vespalib/src/tests/dotproduct/dotproductbenchmark.cpp b/vespalib/src/tests/dotproduct/dotproductbenchmark.cpp index 77bdbf6f58b..51380028ffa 100644 --- a/vespalib/src/tests/dotproduct/dotproductbenchmark.cpp +++ b/vespalib/src/tests/dotproduct/dotproductbenchmark.cpp @@ -83,7 +83,7 @@ public: ~SparseBenchmark(); protected: struct P { - P(uint32_t key=0, int32_t value=0) : + P(uint32_t key=0, int32_t value=0) noexcept : _key(key), _value(value) { } diff --git a/vespalib/src/tests/simple_thread_bundle/simple_thread_bundle_test.cpp b/vespalib/src/tests/simple_thread_bundle/simple_thread_bundle_test.cpp index b808635a8cc..8d5d393fe22 100644 --- a/vespalib/src/tests/simple_thread_bundle/simple_thread_bundle_test.cpp +++ b/vespalib/src/tests/simple_thread_bundle/simple_thread_bundle_test.cpp @@ -10,7 +10,7 @@ using namespace vespalib::fixed_thread_bundle; struct Cnt : Runnable { size_t x; - Cnt() : x(0) {} + Cnt() noexcept : x(0) {} void run() override { ++x; } }; diff --git a/vespalib/src/tests/simple_thread_bundle/threading_speed_test.cpp b/vespalib/src/tests/simple_thread_bundle/threading_speed_test.cpp index 13b0d003909..eb82425c819 100644 --- a/vespalib/src/tests/simple_thread_bundle/threading_speed_test.cpp +++ b/vespalib/src/tests/simple_thread_bundle/threading_speed_test.cpp @@ -19,7 +19,7 @@ struct Worker : Runnable { size_t iter; uint64_t input; uint64_t output; - Worker() : iter(1), input(0), output(0) {} + Worker() noexcept : iter(1), input(0), output(0) {} void init(size_t n, uint64_t i) { iter = n; input = i; |