aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2021-12-11 02:45:14 +0100
committerTor Egge <Tor.Egge@online.no>2021-12-11 02:45:14 +0100
commit0109b1a5f3e300cbeb151a91bef027b406cace39 (patch)
tree87bfe7484f54023265da902e4cfef6b2384d2eb8 /vespalib
parent60b142c007083c773e910b44cc57d65e7f2c9274 (diff)
Add noexcept specifiers.
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/tests/dotproduct/dotproductbenchmark.cpp2
-rw-r--r--vespalib/src/tests/simple_thread_bundle/simple_thread_bundle_test.cpp2
-rw-r--r--vespalib/src/tests/simple_thread_bundle/threading_speed_test.cpp2
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;