diff --git a/Userland/Applications/BrowserSettings/main.cpp b/Userland/Applications/BrowserSettings/main.cpp index 40883bf1065..5a1559eaf37 100644 --- a/Userland/Applications/BrowserSettings/main.cpp +++ b/Userland/Applications/BrowserSettings/main.cpp @@ -26,7 +26,7 @@ ErrorOr serenity_main(Main::Arguments arguments) auto window = TRY(GUI::SettingsWindow::create("Browser Settings", GUI::SettingsWindow::ShowDefaultsButton::Yes)); window->set_icon(app_icon.bitmap_for_size(16)); - TRY(window->add_tab("Browser")); + (void)TRY(window->add_tab("Browser")); window->show(); return app->exec(); diff --git a/Userland/Applications/CrashReporter/main.cpp b/Userland/Applications/CrashReporter/main.cpp index 121b00f1895..faa96ab5615 100644 --- a/Userland/Applications/CrashReporter/main.cpp +++ b/Userland/Applications/CrashReporter/main.cpp @@ -276,7 +276,7 @@ ErrorOr serenity_main(Main::Arguments arguments) auto& tab_widget = *widget->find_descendant_of_type_named("tab_widget"); auto backtrace_tab = TRY(tab_widget.try_add_tab("Backtrace")); - TRY(backtrace_tab->try_set_layout()); + (void)TRY(backtrace_tab->try_set_layout()); backtrace_tab->layout()->set_margins(4); auto backtrace_label = TRY(backtrace_tab->try_add("A backtrace for each thread alive during the crash is listed below:")); @@ -287,7 +287,7 @@ ErrorOr serenity_main(Main::Arguments arguments) backtrace_tab_widget->set_tab_position(GUI::TabWidget::TabPosition::Bottom); for (auto& backtrace : thread_backtraces) { auto container = TRY(backtrace_tab_widget->try_add_tab(backtrace.title)); - TRY(container->try_set_layout()); + (void)TRY(container->try_set_layout()); container->layout()->set_margins(4); auto backtrace_text_editor = TRY(container->try_add()); backtrace_text_editor->set_text(backtrace.text); @@ -307,7 +307,7 @@ ErrorOr serenity_main(Main::Arguments arguments) cpu_registers_tab_widget->set_tab_position(GUI::TabWidget::TabPosition::Bottom); for (auto& cpu_registers : thread_cpu_registers) { auto container = TRY(cpu_registers_tab_widget->try_add_tab(cpu_registers.title)); - TRY(container->try_set_layout()); + (void)TRY(container->try_set_layout()); container->layout()->set_margins(4); auto cpu_registers_text_editor = TRY(container->try_add()); cpu_registers_text_editor->set_text(cpu_registers.text); @@ -316,7 +316,7 @@ ErrorOr serenity_main(Main::Arguments arguments) } auto environment_tab = TRY(tab_widget.try_add_tab("Environment")); - TRY(environment_tab->try_set_layout()); + (void)TRY(environment_tab->try_set_layout()); environment_tab->layout()->set_margins(4); auto environment_text_editor = TRY(environment_tab->try_add()); @@ -325,7 +325,7 @@ ErrorOr serenity_main(Main::Arguments arguments) environment_text_editor->set_should_hide_unnecessary_scrollbars(true); auto memory_regions_tab = TRY(tab_widget.try_add_tab("Memory Regions")); - TRY(memory_regions_tab->try_set_layout()); + (void)TRY(memory_regions_tab->try_set_layout()); memory_regions_tab->layout()->set_margins(4); auto memory_regions_text_editor = TRY(memory_regions_tab->try_add()); diff --git a/Userland/Applications/DisplaySettings/main.cpp b/Userland/Applications/DisplaySettings/main.cpp index e643f10aaef..d0363048581 100644 --- a/Userland/Applications/DisplaySettings/main.cpp +++ b/Userland/Applications/DisplaySettings/main.cpp @@ -27,10 +27,10 @@ ErrorOr serenity_main(Main::Arguments arguments) auto app_icon = GUI::Icon::default_icon("app-display-settings"); auto window = TRY(GUI::SettingsWindow::create("Display Settings")); - TRY(window->add_tab("Background")); - TRY(window->add_tab("Fonts")); - TRY(window->add_tab("Monitor")); - TRY(window->add_tab("Workspaces")); + (void)TRY(window->add_tab("Background")); + (void)TRY(window->add_tab("Fonts")); + (void)TRY(window->add_tab("Monitor")); + (void)TRY(window->add_tab("Workspaces")); window->set_icon(app_icon.bitmap_for_size(16)); diff --git a/Userland/Applications/FileManager/main.cpp b/Userland/Applications/FileManager/main.cpp index b4fbeaed698..27326c9c5a3 100644 --- a/Userland/Applications/FileManager/main.cpp +++ b/Userland/Applications/FileManager/main.cpp @@ -278,7 +278,7 @@ ErrorOr run_in_desktop_mode() window->set_has_alpha_channel(true); auto desktop_widget = TRY(window->try_set_main_widget()); - TRY(desktop_widget->try_set_layout()); + (void)TRY(desktop_widget->try_set_layout()); auto directory_view = TRY(desktop_widget->try_add(DirectoryView::Mode::Desktop)); directory_view->set_name("directory_view"); @@ -904,31 +904,31 @@ ErrorOr run_in_windowed_mode(String initial_location, String entry_focused_ auto help_menu = TRY(window->try_add_menu("&Help")); TRY(help_menu->try_add_action(GUI::CommonActions::make_about_action("File Manager", GUI::Icon::default_icon("app-file-manager"), window))); - TRY(main_toolbar.try_add_action(go_back_action)); - TRY(main_toolbar.try_add_action(go_forward_action)); - TRY(main_toolbar.try_add_action(open_parent_directory_action)); - TRY(main_toolbar.try_add_action(go_home_action)); + (void)TRY(main_toolbar.try_add_action(go_back_action)); + (void)TRY(main_toolbar.try_add_action(go_forward_action)); + (void)TRY(main_toolbar.try_add_action(open_parent_directory_action)); + (void)TRY(main_toolbar.try_add_action(go_home_action)); TRY(main_toolbar.try_add_separator()); - TRY(main_toolbar.try_add_action(directory_view->open_terminal_action())); + (void)TRY(main_toolbar.try_add_action(directory_view->open_terminal_action())); TRY(main_toolbar.try_add_separator()); - TRY(main_toolbar.try_add_action(mkdir_action)); - TRY(main_toolbar.try_add_action(touch_action)); + (void)TRY(main_toolbar.try_add_action(mkdir_action)); + (void)TRY(main_toolbar.try_add_action(touch_action)); TRY(main_toolbar.try_add_separator()); - TRY(main_toolbar.try_add_action(focus_dependent_delete_action)); - TRY(main_toolbar.try_add_action(directory_view->rename_action())); + (void)TRY(main_toolbar.try_add_action(focus_dependent_delete_action)); + (void)TRY(main_toolbar.try_add_action(directory_view->rename_action())); TRY(main_toolbar.try_add_separator()); - TRY(main_toolbar.try_add_action(cut_action)); - TRY(main_toolbar.try_add_action(copy_action)); - TRY(main_toolbar.try_add_action(paste_action)); + (void)TRY(main_toolbar.try_add_action(cut_action)); + (void)TRY(main_toolbar.try_add_action(copy_action)); + (void)TRY(main_toolbar.try_add_action(paste_action)); TRY(main_toolbar.try_add_separator()); - TRY(main_toolbar.try_add_action(directory_view->view_as_icons_action())); - TRY(main_toolbar.try_add_action(directory_view->view_as_table_action())); - TRY(main_toolbar.try_add_action(directory_view->view_as_columns_action())); + (void)TRY(main_toolbar.try_add_action(directory_view->view_as_icons_action())); + (void)TRY(main_toolbar.try_add_action(directory_view->view_as_table_action())); + (void)TRY(main_toolbar.try_add_action(directory_view->view_as_columns_action())); directory_view->on_path_change = [&](String const& new_path, bool can_read_in_path, bool can_write_in_path) { auto icon = GUI::FileIconProvider::icon_for_path(new_path); diff --git a/Userland/Applications/Help/main.cpp b/Userland/Applications/Help/main.cpp index 5cca7409413..4fb7bb1713d 100644 --- a/Userland/Applications/Help/main.cpp +++ b/Userland/Applications/Help/main.cpp @@ -58,7 +58,7 @@ ErrorOr serenity_main(Main::Arguments arguments) window->resize(570, 500); auto widget = TRY(window->try_set_main_widget()); - TRY(widget->try_set_layout()); + (void)TRY(widget->try_set_layout()); widget->set_fill_with_background_color(true); widget->layout()->set_spacing(2); @@ -72,11 +72,11 @@ ErrorOr serenity_main(Main::Arguments arguments) auto left_tab_bar = TRY(splitter->try_add()); auto tree_view_container = TRY(left_tab_bar->try_add_tab("Browse")); - TRY(tree_view_container->try_set_layout()); + (void)TRY(tree_view_container->try_set_layout()); tree_view_container->layout()->set_margins(4); auto tree_view = TRY(tree_view_container->try_add()); auto search_view = TRY(left_tab_bar->try_add_tab("Search")); - TRY(search_view->try_set_layout()); + (void)TRY(search_view->try_set_layout()); search_view->layout()->set_margins(4); auto search_box = TRY(search_view->try_add()); auto search_list_view = TRY(search_view->try_add()); @@ -234,9 +234,9 @@ ErrorOr serenity_main(Main::Arguments arguments) open_page(path); }); - TRY(toolbar->try_add_action(*go_back_action)); - TRY(toolbar->try_add_action(*go_forward_action)); - TRY(toolbar->try_add_action(*go_home_action)); + (void)TRY(toolbar->try_add_action(*go_back_action)); + (void)TRY(toolbar->try_add_action(*go_forward_action)); + (void)TRY(toolbar->try_add_action(*go_home_action)); auto file_menu = TRY(window->try_add_menu("&File")); TRY(file_menu->try_add_action(GUI::CommonActions::make_quit_action([](auto&) { diff --git a/Userland/Applications/KeyboardSettings/main.cpp b/Userland/Applications/KeyboardSettings/main.cpp index 386a8bc1b9b..e88765304fb 100644 --- a/Userland/Applications/KeyboardSettings/main.cpp +++ b/Userland/Applications/KeyboardSettings/main.cpp @@ -31,7 +31,7 @@ ErrorOr serenity_main(Main::Arguments arguments) auto window = TRY(GUI::SettingsWindow::create("Keyboard Settings")); window->set_icon(app_icon.bitmap_for_size(16)); - TRY(window->add_tab("Keyboard")); + (void)TRY(window->add_tab("Keyboard")); window->show(); return app->exec(); diff --git a/Userland/Applications/MailSettings/main.cpp b/Userland/Applications/MailSettings/main.cpp index 43279c54de7..66329e9deb3 100644 --- a/Userland/Applications/MailSettings/main.cpp +++ b/Userland/Applications/MailSettings/main.cpp @@ -28,7 +28,7 @@ ErrorOr serenity_main(Main::Arguments arguments) auto app_icon = GUI::Icon::default_icon("app-mail"); auto window = TRY(GUI::SettingsWindow::create("Mail Settings", GUI::SettingsWindow::ShowDefaultsButton::Yes)); - TRY(window->add_tab("Mail")); + (void)TRY(window->add_tab("Mail")); window->set_icon(app_icon.bitmap_for_size(16)); window->show(); diff --git a/Userland/Applications/MouseSettings/main.cpp b/Userland/Applications/MouseSettings/main.cpp index afbb5b5e1de..8d8d91c3087 100644 --- a/Userland/Applications/MouseSettings/main.cpp +++ b/Userland/Applications/MouseSettings/main.cpp @@ -26,8 +26,8 @@ ErrorOr serenity_main(Main::Arguments arguments) auto app_icon = GUI::Icon::default_icon("app-mouse"); auto window = TRY(GUI::SettingsWindow::create("Mouse Settings", GUI::SettingsWindow::ShowDefaultsButton::Yes)); - TRY(window->add_tab("Mouse")); - TRY(window->add_tab("Cursor Theme")); + (void)TRY(window->add_tab("Mouse")); + (void)TRY(window->add_tab("Cursor Theme")); window->set_icon(app_icon.bitmap_for_size(16)); window->show(); diff --git a/Userland/Applications/Terminal/main.cpp b/Userland/Applications/Terminal/main.cpp index 665527913f8..12e9c154a10 100644 --- a/Userland/Applications/Terminal/main.cpp +++ b/Userland/Applications/Terminal/main.cpp @@ -160,11 +160,11 @@ static ErrorOr> create_find_window(VT::TerminalWidget auto main_widget = TRY(window->try_set_main_widget()); main_widget->set_fill_with_background_color(true); main_widget->set_background_role(ColorRole::Button); - TRY(main_widget->try_set_layout()); + (void)TRY(main_widget->try_set_layout()); main_widget->layout()->set_margins(4); auto find = TRY(main_widget->try_add()); - TRY(find->try_set_layout()); + (void)TRY(find->try_set_layout()); find->layout()->set_margins(4); find->set_fixed_height(30); diff --git a/Userland/Applications/TerminalSettings/main.cpp b/Userland/Applications/TerminalSettings/main.cpp index 520637a243b..1e3d3a5b5f6 100644 --- a/Userland/Applications/TerminalSettings/main.cpp +++ b/Userland/Applications/TerminalSettings/main.cpp @@ -28,8 +28,8 @@ ErrorOr serenity_main(Main::Arguments arguments) auto window = TRY(GUI::SettingsWindow::create("Terminal Settings")); window->set_icon(app_icon.bitmap_for_size(16)); - TRY(window->add_tab("Terminal")); - TRY(window->add_tab("View")); + (void)TRY(window->add_tab("Terminal")); + (void)TRY(window->add_tab("View")); window->show(); return app->exec();