summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--eval/src/apps/tensor_conformance/tensor_conformance.cpp4
-rw-r--r--eval/src/tests/tensor/dense_simple_join_function/dense_simple_join_function_test.cpp12
-rw-r--r--fnet/src/tests/time/timespeed.cpp4
-rw-r--r--storage/src/tests/storageserver/rpc/storage_api_rpc_service_test.cpp4
-rw-r--r--vespalib/src/tests/datastore/unique_store_dictionary/unique_store_dictionary_test.cpp2
-rw-r--r--vespalib/src/tests/detect_type_benchmark/detect_type_benchmark.cpp2
-rw-r--r--vespalib/src/tests/portal/portal_test.cpp2
-rw-r--r--vespalib/src/tests/time_tracer/time_tracer_test.cpp4
-rw-r--r--vespalib/src/vespa/vespalib/net/socket_address.h2
-rw-r--r--vespalib/src/vespa/vespalib/portal/portal.h2
-rw-r--r--vespalib/src/vespa/vespalib/portal/reactor.h2
11 files changed, 20 insertions, 20 deletions
diff --git a/eval/src/apps/tensor_conformance/tensor_conformance.cpp b/eval/src/apps/tensor_conformance/tensor_conformance.cpp
index 59fe2960dbb..6099e543922 100644
--- a/eval/src/apps/tensor_conformance/tensor_conformance.cpp
+++ b/eval/src/apps/tensor_conformance/tensor_conformance.cpp
@@ -278,8 +278,8 @@ void compare_test(const Inspector &expect_in, const Inspector &actual_in) {
void compare(Input &expect, Input &actual) {
TestList expect_tests;
TestList actual_tests;
- for_each_test(expect, std::bind(&TestList::add_test, &expect_tests, _1), [](Slime &){});
- for_each_test(actual, std::bind(&TestList::add_test, &actual_tests, _1), [](Slime &){});
+ for_each_test(expect, std::bind(&TestList::add_test, &expect_tests, _1), [](Slime &) noexcept {});
+ for_each_test(actual, std::bind(&TestList::add_test, &actual_tests, _1), [](Slime &) noexcept {});
ASSERT_TRUE(!expect_tests.list.empty());
ASSERT_TRUE(!actual_tests.list.empty());
ASSERT_EQUAL(expect_tests.list.size(), actual_tests.list.size());
diff --git a/eval/src/tests/tensor/dense_simple_join_function/dense_simple_join_function_test.cpp b/eval/src/tests/tensor/dense_simple_join_function/dense_simple_join_function_test.cpp
index b0927fd7e90..34e5363d313 100644
--- a/eval/src/tests/tensor/dense_simple_join_function/dense_simple_join_function_test.cpp
+++ b/eval/src/tests/tensor/dense_simple_join_function/dense_simple_join_function_test.cpp
@@ -59,12 +59,12 @@ EvalFixture::ParamRepo make_params() {
.add_vector("x", 5)
.add_dense({{"c", 5}, {"d", 1}})
.add_dense({{"b", 1}, {"c", 5}})
- .add_matrix("x", 3, "y", 5, [](size_t idx){ return double((idx * 2) + 3); })
- .add_matrix("x", 3, "y", 5, [](size_t idx){ return double((idx * 3) + 2); })
- .add_vector("y", 5, [](size_t idx){ return double((idx * 2) + 3); })
- .add_vector("y", 5, [](size_t idx){ return double((idx * 3) + 2); })
- .add_matrix("y", 5, "z", 3, [](size_t idx){ return double((idx * 2) + 3); })
- .add_matrix("y", 5, "z", 3, [](size_t idx){ return double((idx * 3) + 2); });
+ .add_matrix("x", 3, "y", 5, [](size_t idx) noexcept { return double((idx * 2) + 3); })
+ .add_matrix("x", 3, "y", 5, [](size_t idx) noexcept { return double((idx * 3) + 2); })
+ .add_vector("y", 5, [](size_t idx) noexcept { return double((idx * 2) + 3); })
+ .add_vector("y", 5, [](size_t idx) noexcept { return double((idx * 3) + 2); })
+ .add_matrix("y", 5, "z", 3, [](size_t idx) noexcept { return double((idx * 2) + 3); })
+ .add_matrix("y", 5, "z", 3, [](size_t idx) noexcept { return double((idx * 3) + 2); });
}
EvalFixture::ParamRepo param_repo = make_params();
diff --git a/fnet/src/tests/time/timespeed.cpp b/fnet/src/tests/time/timespeed.cpp
index 1204b0ff334..e6d2af5a278 100644
--- a/fnet/src/tests/time/timespeed.cpp
+++ b/fnet/src/tests/time/timespeed.cpp
@@ -9,14 +9,14 @@ using vespalib::BenchmarkTimer;
TEST("steady clock speed") {
using clock = std::chrono::steady_clock;
clock::time_point t;
- double min_time_us = BenchmarkTimer::benchmark([&t](){t = clock::now();}, 1.0) * 1000000.0;
+ double min_time_us = BenchmarkTimer::benchmark([&t]() noexcept {t = clock::now();}, 1.0) * 1000000.0;
fprintf(stderr, "approx overhead per sample (steady clock): %f us\n", min_time_us);
}
TEST("system clock speed") {
using clock = std::chrono::system_clock;
clock::time_point t;
- double min_time_us = BenchmarkTimer::benchmark([&t](){t = clock::now();}, 1.0) * 1000000.0;
+ double min_time_us = BenchmarkTimer::benchmark([&t]() noexcept {t = clock::now();}, 1.0) * 1000000.0;
fprintf(stderr, "approx overhead per sample (system clock): %f us\n", min_time_us);
}
diff --git a/storage/src/tests/storageserver/rpc/storage_api_rpc_service_test.cpp b/storage/src/tests/storageserver/rpc/storage_api_rpc_service_test.cpp
index 8228ceb5e79..69d5a827272 100644
--- a/storage/src/tests/storageserver/rpc/storage_api_rpc_service_test.cpp
+++ b/storage/src/tests/storageserver/rpc/storage_api_rpc_service_test.cpp
@@ -265,7 +265,7 @@ struct StorageApiRpcServiceTest : Test {
return recv_as_put;
}
[[nodiscard]] std::shared_ptr<api::PutCommand> send_and_receive_put_command_at_node_1() {
- return send_and_receive_put_command_at_node_1([]([[maybe_unused]] auto& cmd){});
+ return send_and_receive_put_command_at_node_1([]([[maybe_unused]] auto& cmd) noexcept {});
}
[[nodiscard]] std::shared_ptr<api::PutReply> respond_and_receive_put_reply_at_node_0(
@@ -283,7 +283,7 @@ struct StorageApiRpcServiceTest : Test {
[[nodiscard]] std::shared_ptr<api::PutReply> respond_and_receive_put_reply_at_node_0(
const std::shared_ptr<api::PutCommand>& cmd) {
- return respond_and_receive_put_reply_at_node_0(cmd, []([[maybe_unused]] auto& reply){});
+ return respond_and_receive_put_reply_at_node_0(cmd, []([[maybe_unused]] auto& reply) noexcept {});
}
};
diff --git a/vespalib/src/tests/datastore/unique_store_dictionary/unique_store_dictionary_test.cpp b/vespalib/src/tests/datastore/unique_store_dictionary/unique_store_dictionary_test.cpp
index 37a22108dc5..6a9215c3eb9 100644
--- a/vespalib/src/tests/datastore/unique_store_dictionary/unique_store_dictionary_test.cpp
+++ b/vespalib/src/tests/datastore/unique_store_dictionary/unique_store_dictionary_test.cpp
@@ -40,7 +40,7 @@ struct DictionaryReadTest : public ::testing::Test {
{
}
DictionaryReadTest& add(uint32_t value) {
- auto result = dict.add(Comparator(value), [=]() { return EntryRef(value); });
+ auto result = dict.add(Comparator(value), [=]() noexcept { return EntryRef(value); });
assert(result.inserted());
return *this;
}
diff --git a/vespalib/src/tests/detect_type_benchmark/detect_type_benchmark.cpp b/vespalib/src/tests/detect_type_benchmark/detect_type_benchmark.cpp
index 6d178093069..71c4a7856c8 100644
--- a/vespalib/src/tests/detect_type_benchmark/detect_type_benchmark.cpp
+++ b/vespalib/src/tests/detect_type_benchmark/detect_type_benchmark.cpp
@@ -57,7 +57,7 @@ struct CheckType {
};
struct Nop {
- void operator()() const {}
+ void operator()() const noexcept {}
};
//-----------------------------------------------------------------------------
diff --git a/vespalib/src/tests/portal/portal_test.cpp b/vespalib/src/tests/portal/portal_test.cpp
index 0bd029c0c3a..07d3b9e1bfb 100644
--- a/vespalib/src/tests/portal/portal_test.cpp
+++ b/vespalib/src/tests/portal/portal_test.cpp
@@ -202,7 +202,7 @@ TEST("require that get requests dropped on the floor returns HTTP error") {
vespalib::string path = "/test";
auto portal = Portal::create(null_crypto(), 0);
auto expect = make_expected_error(500, "Internal Server Error");
- MyGetHandler handler([](Portal::GetRequest){});
+ MyGetHandler handler([](Portal::GetRequest) noexcept {});
auto bound = portal->bind(path, handler);
auto result = fetch(portal->listen_port(), null_crypto(), path);
EXPECT_EQUAL(result, expect);
diff --git a/vespalib/src/tests/time_tracer/time_tracer_test.cpp b/vespalib/src/tests/time_tracer/time_tracer_test.cpp
index d7e2e0d579a..6d55e867ba5 100644
--- a/vespalib/src/tests/time_tracer/time_tracer_test.cpp
+++ b/vespalib/src/tests/time_tracer/time_tracer_test.cpp
@@ -67,8 +67,8 @@ TEST("require that records are extracted inversely ordered by end time per threa
}
TEST("benchmark time sampling") {
- double min_stamp_us = 1000000.0 * BenchmarkTimer::benchmark([](){ (void) TimeTracer::now(); }, 1.0);
- double min_sample_us = 1000000.0 * BenchmarkTimer::benchmark([](){ TT_Sample my_sample(my_tag); }, 1.0);
+ double min_stamp_us = 1000000.0 * BenchmarkTimer::benchmark([]() noexcept { (void) TimeTracer::now(); }, 1.0);
+ double min_sample_us = 1000000.0 * BenchmarkTimer::benchmark([]() noexcept { TT_Sample my_sample(my_tag); }, 1.0);
fprintf(stderr, "min timestamp time: %g us\n", min_stamp_us);
fprintf(stderr, "min sample time: %g us\n", min_sample_us);
fprintf(stderr, "estimated non-clock overhead: %g us\n", (min_sample_us - (min_stamp_us * 2.0)));
diff --git a/vespalib/src/vespa/vespalib/net/socket_address.h b/vespalib/src/vespa/vespalib/net/socket_address.h
index 2b75eae8948..543af44a56e 100644
--- a/vespalib/src/vespa/vespalib/net/socket_address.h
+++ b/vespalib/src/vespa/vespalib/net/socket_address.h
@@ -48,7 +48,7 @@ public:
vespalib::string name() const;
vespalib::string spec() const;
SocketHandle connect(const std::function<bool(SocketHandle&)> &tweak) const;
- SocketHandle connect() const { return connect([](SocketHandle&){ return true; }); }
+ SocketHandle connect() const { return connect([](SocketHandle&) noexcept { return true; }); }
SocketHandle connect_async() const {
return connect([](SocketHandle &handle){ return handle.set_blocking(false); });
}
diff --git a/vespalib/src/vespa/vespalib/portal/portal.h b/vespalib/src/vespa/vespalib/portal/portal.h
index 1c5b9f88a5f..5ac2d85a6e3 100644
--- a/vespalib/src/vespa/vespalib/portal/portal.h
+++ b/vespalib/src/vespa/vespalib/portal/portal.h
@@ -53,7 +53,7 @@ public:
GetRequest(const GetRequest &rhs) = delete;
GetRequest &operator=(const GetRequest &rhs) = delete;
GetRequest &operator=(GetRequest &&rhs) = delete;
- GetRequest(GetRequest &&rhs) : _conn(rhs._conn) {
+ GetRequest(GetRequest &&rhs) noexcept : _conn(rhs._conn) {
rhs._conn = nullptr;
}
bool active() const { return (_conn != nullptr); }
diff --git a/vespalib/src/vespa/vespalib/portal/reactor.h b/vespalib/src/vespa/vespalib/portal/reactor.h
index a7961c3c943..408f358d31b 100644
--- a/vespalib/src/vespa/vespalib/portal/reactor.h
+++ b/vespalib/src/vespa/vespalib/portal/reactor.h
@@ -60,7 +60,7 @@ private:
public:
Reactor(std::function<int()> tick);
- Reactor() : Reactor([](){ return -1; }) {}
+ Reactor() : Reactor([]() noexcept { return -1; }) {}
~Reactor();
Token::UP attach(EventHandler &handler, int fd, bool read, bool write);
};