[Commits] [SCM] claws branch, master, updated. 3.14.0-102-g41064e4

ticho at claws-mail.org ticho at claws-mail.org
Sat Oct 1 17:56:45 CEST 2016


The branch, master has been updated
       via  41064e4416bfcff315583cb3bb5a0a187890c01e (commit)
      from  8d93e8c8cd8169ef0071301d1dd8888199bc6e87 (commit)

Summary of changes:
 src/plugins/notification/notification_popup.c |    7 ++-----
 src/plugins/vcalendar/vcal_meeting_gtk.c      |    1 -
 2 files changed, 2 insertions(+), 6 deletions(-)


- Log -----------------------------------------------------------------
commit 41064e4416bfcff315583cb3bb5a0a187890c01e
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Sat Oct 1 17:55:10 2016 +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.

diff --git a/src/plugins/notification/notification_popup.c b/src/plugins/notification/notification_popup.c
index 56717e5..9a7dde8 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 941482b..99e43fd 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;

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list