Merge "Explicitly ignore the result of std::async" into main am: 60dbdaa3fa

Original change: https://android-review.googlesource.com/c/platform/system/core/+/2673359

Change-Id: I098989364b5d481d84ae8365ea52bf082bc8e7f3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Ryan Prichard 2023-07-25 21:28:50 +00:00 committed by Automerger Merge Worker
commit 488f4b5a39

View file

@ -734,8 +734,8 @@ void Snapuserd::ReadBlocks(const std::string& partition_name, const std::string&
off_t offset = 0;
for (int i = 0; i < num_threads; i++) {
std::async(std::launch::async, &Snapuserd::ReadBlocksToCache, this, dm_block_device,
partition_name, offset, read_sz_per_thread);
(void)std::async(std::launch::async, &Snapuserd::ReadBlocksToCache, this, dm_block_device,
partition_name, offset, read_sz_per_thread);
offset += read_sz_per_thread;
}