Fix some harmless compiler warnings.
authorAndrej Kacian <ticho@claws-mail.org>
Sat, 1 Oct 2016 15:55:10 +0000 (17:55 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Sat, 1 Oct 2016 15:55:10 +0000 (17:55 +0200)
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
src/plugins/vcalendar/vcal_meeting_gtk.c

index 56717e5..9a7dde8 100644 (file)
@@ -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);
 
index 941482b..99e43fd 100644 (file)
@@ -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;