mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:27:43 +00:00
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.
This commit is contained in:
parent
92f8514a85
commit
d2024f04bd
7 changed files with 7 additions and 7 deletions
|
@ -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();
|
||||
|
|
|
@ -30,7 +30,7 @@ bool MonitorWidget::set_wallpaper(String path)
|
|||
if (!is_different_to_current_wallpaper_path(path))
|
||||
return false;
|
||||
|
||||
Threading::BackgroundAction<ErrorOr<NonnullRefPtr<Gfx::Bitmap>>>::construct(
|
||||
(void)Threading::BackgroundAction<ErrorOr<NonnullRefPtr<Gfx::Bitmap>>>::construct(
|
||||
[path](auto&) -> ErrorOr<NonnullRefPtr<Gfx::Bitmap>> {
|
||||
if (path.is_empty())
|
||||
return Error::from_errno(ENOENT);
|
||||
|
|
|
@ -113,7 +113,7 @@ private:
|
|||
|
||||
void ThreadStackWidget::refresh()
|
||||
{
|
||||
Threading::BackgroundAction<Vector<Symbolication::Symbol>>::construct(
|
||||
(void)Threading::BackgroundAction<Vector<Symbolication::Symbol>>::construct(
|
||||
[pid = m_pid, tid = m_tid](auto&) {
|
||||
return Symbolication::symbolicate_thread(pid, tid, Symbolication::IncludeSourcePosition::No);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue