summaryrefslogtreecommitdiff
path: root/Userland/Applications/Assistant
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2021-12-02 11:47:21 +0000
committerAndreas Kling <kling@serenityos.org>2021-12-05 15:31:03 +0100
commitd2024f04bd76abc111eeb6bd28e90ca6388af167 (patch)
treebd0ed7e4467b2c7f7ff4992b1fda285340586c57 /Userland/Applications/Assistant
parent92f8514a854233b9b533096006641d57a91d099a (diff)
downloadserenity-d2024f04bd76abc111eeb6bd28e90ca6388af167.zip
Userland: Cast unused BackgroundAction::construct() results to void
User code does not need to keep this alive, so casting to void is safe. But maybe a bit weird.
Diffstat (limited to 'Userland/Applications/Assistant')
-rw-r--r--Userland/Applications/Assistant/Providers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/Assistant/Providers.cpp b/Userland/Applications/Assistant/Providers.cpp
index b7bc973574..75381ec723 100644
--- a/Userland/Applications/Assistant/Providers.cpp
+++ b/Userland/Applications/Assistant/Providers.cpp
@@ -163,7 +163,7 @@ void FileProvider::build_filesystem_cache()
m_building_cache = true;
m_work_queue.enqueue("/");
- Threading::BackgroundAction<int>::construct(
+ (void)Threading::BackgroundAction<int>::construct(
[this](auto&) {
String slash = "/";
auto timer = Core::ElapsedTimer::start_new();