commit a2e991d8e8eb6d322024fe414a3f604fa67451a5
parent 849778a7594493c7deb4706595199590b85f6c3f
Author: Jonathan Boeing <jonathan@claws-mail.org>
Date: Sun, 12 Sep 2021 23:50:02 -0700
Fix -Wunused-but-set-variable warnings
Diffstat:
3 files changed, 1 insertion(+), 15 deletions(-)
diff --git a/src/gtk/prefswindow.c b/src/gtk/prefswindow.c
@@ -253,7 +253,7 @@ static gint prefswindow_tree_sort_by_weight(GtkTreeModel *model,
static void prefswindow_build_page(PrefsWindow *prefswindow, PrefsPage *page)
{
- GtkWidget *scrolledwin, *tmp;
+ GtkWidget *scrolledwin;
if (!page->page_open) {
scrolledwin = gtk_scrolled_window_new(NULL, NULL);
@@ -265,7 +265,6 @@ static void prefswindow_build_page(PrefsWindow *prefswindow, PrefsPage *page)
gtk_container_add(GTK_CONTAINER(scrolledwin), page->widget);
gtk_container_add(GTK_CONTAINER(prefswindow->notebook), scrolledwin);
- tmp = gtk_bin_get_child(GTK_BIN(scrolledwin));
page->widget = scrolledwin;
page->page_open = TRUE;
diff --git a/src/gtk/quicksearch.c b/src/gtk/quicksearch.c
@@ -1044,7 +1044,6 @@ void quicksearch_show(QuickSearch *quicksearch)
{
gint active_type;
MainWindow *mainwin = mainwindow_get_mainwindow();
- GtkWidget *ctree = NULL;
gtk_widget_show(quicksearch->hbox_search);
update_extended_buttons(quicksearch);
gtk_widget_grab_focus(quicksearch->search_string_entry);
@@ -1053,8 +1052,6 @@ void quicksearch_show(QuickSearch *quicksearch)
return;
}
- ctree = summary_get_main_widget(mainwin->summaryview);
-
active_type = prefs_common_get_prefs()->summary_quicksearch_type;
quicksearch_set_type(quicksearch, active_type);
}
diff --git a/src/plugins/notification/notification_banner.c b/src/plugins/notification/notification_banner.c
@@ -468,16 +468,6 @@ static gboolean notification_banner_button_press(GtkWidget *widget,
static void notification_banner_show_popup(GtkWidget *widget,
GdkEventButton *event)
{
- int button, event_time;
-
- if (event) {
- button = event->button;
- event_time = event->time;
- } else {
- button = 0;
- event_time = gtk_get_current_event_time();
- }
-
gtk_menu_popup_at_pointer(GTK_MENU(banner_popup), NULL);
}