From 41064e4416bfcff315583cb3bb5a0a187890c01e Mon Sep 17 00:00:00 2001 From: Andrej Kacian Date: Sat, 1 Oct 2016 17:55:10 +0200 Subject: [PATCH] Fix some harmless compiler warnings. Some variables in notification_popup.c were peeking out of their ifdefs, and I forgot to remove an unused variable in vcal_meeting_gtk.c in my commit 8d93e8c. --- src/plugins/notification/notification_popup.c | 7 ++----- src/plugins/vcalendar/vcal_meeting_gtk.c | 1 - 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/plugins/notification/notification_popup.c b/src/plugins/notification/notification_popup.c index 56717e52e..9a7dde883 100644 --- a/src/plugins/notification/notification_popup.c +++ b/src/plugins/notification/notification_popup.c @@ -92,8 +92,8 @@ static gboolean notification_popup_button(GtkWidget*, GdkEventButton*, gpointer) void notification_popup_msg(MsgInfo *msginfo) { - FolderType ftype; #if HAVE_LIBNOTIFY + FolderType ftype; gchar *uistr; #else NotificationPopup *ppopup; @@ -136,11 +136,11 @@ void notification_popup_msg(MsgInfo *msginfo) return; } - ftype = msginfo->folder->folder->klass->type; G_LOCK(popup); #ifdef HAVE_LIBNOTIFY /* Check out which type to notify about */ + ftype = msginfo->folder->folder->klass->type; switch(ftype) { case F_MH: case F_MBOX: @@ -227,9 +227,6 @@ static void popup_timeout_fun(NotifyNotification *nn, gpointer data) static gboolean popup_timeout_fun(gpointer data) { NotificationPopup *ppopup; - NotificationFolderType nftype; - - nftype = GPOINTER_TO_INT(data); G_LOCK(popup); diff --git a/src/plugins/vcalendar/vcal_meeting_gtk.c b/src/plugins/vcalendar/vcal_meeting_gtk.c index 941482ba3..99e43fd40 100644 --- a/src/plugins/vcalendar/vcal_meeting_gtk.c +++ b/src/plugins/vcalendar/vcal_meeting_gtk.c @@ -1221,7 +1221,6 @@ static gboolean send_meeting_cb(GtkButton *widget, gpointer data) gchar *summary = NULL; gchar *description = NULL; VCalEvent *event = NULL; - gchar buf[256]; GSList *cur; PrefsAccount *account = NULL; gboolean res = FALSE; -- 2.25.1