talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 41064e4416bfcff315583cb3bb5a0a187890c01e
parent 8d93e8c8cd8169ef0071301d1dd8888199bc6e87
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Sat,  1 Oct 2016 17:55:10 +0200

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.

Diffstat:
Msrc/plugins/notification/notification_popup.c | 7++-----
Msrc/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 @@ -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 @@ -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;