diff --git a/Userland/Libraries/LibGUI/SettingsWindow.cpp b/Userland/Libraries/LibGUI/SettingsWindow.cpp index 3beb028c61..1a74d2c00d 100644 --- a/Userland/Libraries/LibGUI/SettingsWindow.cpp +++ b/Userland/Libraries/LibGUI/SettingsWindow.cpp @@ -26,7 +26,7 @@ ErrorOr> SettingsWindow::create(String title, Show auto main_widget = TRY(window->try_set_main_widget()); main_widget->set_fill_with_background_color(true); - TRY(main_widget->try_set_layout()); + (void)TRY(main_widget->try_set_layout()); main_widget->layout()->set_margins(4); main_widget->layout()->set_spacing(6); @@ -34,7 +34,7 @@ ErrorOr> SettingsWindow::create(String title, Show auto button_container = TRY(main_widget->try_add()); button_container->set_shrink_to_fit(true); - TRY(button_container->try_set_layout()); + (void)TRY(button_container->try_set_layout()); button_container->layout()->set_spacing(6); if (show_defaults_button == ShowDefaultsButton::Yes) { diff --git a/Userland/Libraries/LibGUI/TextDocument.cpp b/Userland/Libraries/LibGUI/TextDocument.cpp index aaed29702c..7982b06d29 100644 --- a/Userland/Libraries/LibGUI/TextDocument.cpp +++ b/Userland/Libraries/LibGUI/TextDocument.cpp @@ -85,7 +85,7 @@ bool TextDocument::set_text(StringView text, AllowCallback allow_callback) // Don't show the file's trailing newline as an actual new line. if (line_count() > 1 && line(line_count() - 1).is_empty()) - m_lines.take_last(); + (void)m_lines.take_last(); m_client_notifications_enabled = true; diff --git a/Userland/Libraries/LibGUI/Toolbar.cpp b/Userland/Libraries/LibGUI/Toolbar.cpp index ec2aab9741..b87d172a3d 100644 --- a/Userland/Libraries/LibGUI/Toolbar.cpp +++ b/Userland/Libraries/LibGUI/Toolbar.cpp @@ -118,7 +118,7 @@ ErrorOr Toolbar::try_add_separator() auto item = TRY(adopt_nonnull_own_or_enomem(new (nothrow) Item)); item->type = Item::Type::Separator; - TRY(try_add(m_orientation == Gfx::Orientation::Horizontal ? Gfx::Orientation::Vertical : Gfx::Orientation::Horizontal)); + (void)TRY(try_add(m_orientation == Gfx::Orientation::Horizontal ? Gfx::Orientation::Vertical : Gfx::Orientation::Horizontal)); m_items.unchecked_append(move(item)); return {}; } diff --git a/Userland/Libraries/LibGUI/UndoStack.cpp b/Userland/Libraries/LibGUI/UndoStack.cpp index 11585e362d..9ca07e0f57 100644 --- a/Userland/Libraries/LibGUI/UndoStack.cpp +++ b/Userland/Libraries/LibGUI/UndoStack.cpp @@ -57,7 +57,7 @@ void UndoStack::push(NonnullOwnPtr command) { // If the stack cursor is behind the top of the stack, nuke everything from here to the top. while (m_stack.size() != m_stack_index) - m_stack.take_last(); + (void)m_stack.take_last(); if (m_clean_index.has_value() && m_clean_index.value() > m_stack.size()) m_clean_index = {};