diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2024-12-16 13:39:36 +0100 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2024-12-19 16:17:46 +0100 |
commit | e2b6d9d3c41d162517019ee0bf9147e398a5b1fa (patch) | |
tree | 248f0a50ec1183836a8257580779cac79ccf51f5 /src/buildtool/main | |
parent | 827f05a53cb831bd54166ee812752ae3cce2b69b (diff) | |
download | justbuild-e2b6d9d3c41d162517019ee0bf9147e398a5b1fa.tar.gz |
Fix cause of minor warnings
Diffstat (limited to 'src/buildtool/main')
-rw-r--r-- | src/buildtool/main/main.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/buildtool/main/main.cpp b/src/buildtool/main/main.cpp index 14da6846..a7bd14f8 100644 --- a/src/buildtool/main/main.cpp +++ b/src/buildtool/main/main.cpp @@ -26,6 +26,7 @@ #include <optional> #include <set> #include <string> +#include <tuple> #include <utility> #include <variant> #include <vector> @@ -97,7 +98,6 @@ #include "src/buildtool/serve_api/serve_service/serve_server_implementation.hpp" #include "src/buildtool/storage/backend_description.hpp" #include "src/buildtool/storage/garbage_collector.hpp" -#include "src/utils/cpp/gsl.hpp" #endif // BOOTSTRAP_BUILD_TOOL namespace { @@ -245,7 +245,6 @@ void SetupFileChunker() { /// \brief Write backend description (which determines the target cache shard) /// to CAS. void StoreTargetCacheShard( - StorageConfig const& storage_config, // NOLINT(misc-unused-parameters) Storage const& storage, RemoteExecutionConfig const& remote_exec_config) noexcept { auto backend_description = @@ -256,8 +255,7 @@ void StoreTargetCacheShard( Logger::Log(LogLevel::Error, backend_description.error()); std::exit(kExitFailure); } - [[maybe_unused]] auto id = storage.CAS().StoreBlob(*backend_description); - EnsuresAudit(id and id->hash() == storage_config.backend_description_id); + std::ignore = storage.CAS().StoreBlob(*backend_description); } #endif // BOOTSTRAP_BUILD_TOOL @@ -815,8 +813,7 @@ auto main(int argc, char* argv[]) -> int { return kExitFailure; } auto const storage = Storage::Create(&*storage_config); - StoreTargetCacheShard( - *storage_config, storage, remote_exec_config); + StoreTargetCacheShard(storage, remote_exec_config); // pack the local context instances to be passed as needed LocalContext const local_context{ @@ -882,8 +879,7 @@ auto main(int argc, char* argv[]) -> int { return kExitFailure; } auto const storage = Storage::Create(&*storage_config); - StoreTargetCacheShard( - *storage_config, storage, *remote_exec_config); + StoreTargetCacheShard(storage, *remote_exec_config); // pack the local context instances to be passed as needed LocalContext const local_context{ @@ -965,7 +961,7 @@ auto main(int argc, char* argv[]) -> int { auto const storage = Storage::Create(&*storage_config); #ifndef BOOTSTRAP_BUILD_TOOL - StoreTargetCacheShard(*storage_config, storage, *remote_exec_config); + StoreTargetCacheShard(storage, *remote_exec_config); #endif // BOOTSTRAP_BUILD_TOOL auto jobs = arguments.build.build_jobs > 0 ? arguments.build.build_jobs |