From e8a9df96a084dc8c34d928a63e8fedbcb2eec9b6 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Thu, 29 Feb 2024 15:17:26 +0100 Subject: just-mr and serve: Extend use of noexcept specifier The just serve client-side and API methods, as well as just-mr utilities should use the noexcept specifier. --- src/other_tools/just_mr/setup_utils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/other_tools/just_mr/setup_utils.cpp') diff --git a/src/other_tools/just_mr/setup_utils.cpp b/src/other_tools/just_mr/setup_utils.cpp index c6805e07..43d19709 100644 --- a/src/other_tools/just_mr/setup_utils.cpp +++ b/src/other_tools/just_mr/setup_utils.cpp @@ -32,7 +32,7 @@ namespace { -void SetupAuthConfig(MultiRepoRemoteAuthArguments const& authargs) { +void SetupAuthConfig(MultiRepoRemoteAuthArguments const& authargs) noexcept { bool use_tls{false}; if (authargs.tls_ca_cert) { use_tls = true; @@ -237,7 +237,7 @@ auto ReadConfiguration( auto GetRemoteApi(std::optional const& remote_exec_addr, std::optional const& remote_serve_addr, - MultiRepoRemoteAuthArguments const& auth) + MultiRepoRemoteAuthArguments const& auth) noexcept -> IExecutionApi::Ptr { // if only a serve endpoint address is given, we assume it is one that acts // also as remote-execution @@ -262,7 +262,7 @@ auto GetRemoteApi(std::optional const& remote_exec_addr, } auto SetupServeApi(std::optional const& remote_serve_addr, - MultiRepoRemoteAuthArguments const& auth) -> bool { + MultiRepoRemoteAuthArguments const& auth) noexcept -> bool { if (remote_serve_addr) { // setup authentication SetupAuthConfig(auth); -- cgit v1.2.3