[Xfce4-commits] [apps/xfce4-notifyd] 02/02: Suppress warnings about unused and uninitialized variables (Bug #14095)
noreply at xfce.org
noreply at xfce.org
Sun Dec 17 21:38:57 CET 2017
This is an automated email from the git hooks/post-receive script.
o c h o s i p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/xfce4-notifyd.
commit 00c064db6c5dd5780b2c45c54a12d9c39cabfc08
Author: Olivier Duchateau <duchateau.olivier at gmail.com>
Date: Sun Dec 17 21:35:26 2017 +0100
Suppress warnings about unused and uninitialized variables (Bug #14095)
---
common/xfce-notify-log.c | 1 -
panel-plugin/notification-plugin.c | 4 ----
xfce4-notifyd-config/main.c | 3 ---
xfce4-notifyd/xfce-notify-daemon.c | 13 +++++--------
4 files changed, 5 insertions(+), 16 deletions(-)
diff --git a/common/xfce-notify-log.c b/common/xfce-notify-log.c
index 3e92785..e8cd416 100644
--- a/common/xfce-notify-log.c
+++ b/common/xfce-notify-log.c
@@ -141,7 +141,6 @@ void xfce_notify_log_insert (const gchar *app_name,
gchar *notify_log_path;
gchar *timeout;
gchar *group;
- gchar **groups;
gint i;
gint j = 0;
GDateTime *now;
diff --git a/panel-plugin/notification-plugin.c b/panel-plugin/notification-plugin.c
index 6902c93..883bf71 100644
--- a/panel-plugin/notification-plugin.c
+++ b/panel-plugin/notification-plugin.c
@@ -45,8 +45,6 @@ XFCE_PANEL_PLUGIN_REGISTER (notification_plugin_construct);
GtkWidget *
notification_plugin_menu_new (NotificationPlugin *notification_plugin)
{
- GtkWidget *mi;
- GtkWidget *label;
GtkWidget *menu;
menu = gtk_menu_new ();
@@ -137,8 +135,6 @@ void
notification_plugin_update_icon (NotificationPlugin *notification_plugin,
gboolean state)
{
- const gchar *icon_name;
-
if (state && !notification_plugin->new_notifications)
gtk_image_set_from_icon_name (GTK_IMAGE (notification_plugin->image),
"notification-disabled-symbolic", GTK_ICON_SIZE_MENU);
diff --git a/xfce4-notifyd-config/main.c b/xfce4-notifyd-config/main.c
index 9a1aad4..44041c8 100644
--- a/xfce4-notifyd-config/main.c
+++ b/xfce4-notifyd-config/main.c
@@ -290,7 +290,6 @@ xfce4_notifyd_mute_application (GtkListBox *known_applications_listbox,
GtkWidget *mute_switch;
gboolean muted;
GPtrArray *muted_applications;
- GPtrArray *new_array;
GValue *val;
guint i;
const gchar *application_name;
@@ -569,7 +568,6 @@ xfce4_notifyd_log_populate (NotificationLogWidgets *log_widgets)
GtkWidget *summary, *body, *app_icon, *expire_timeout;
const gchar *group = groups[i];
const char *format = "<b>\%s</b>";
- const char *tooltip_format = "<b>\%s</b> - \%s\n\%s";
const char *tooltip_format_simple = "<b>\%s</b> - \%s";
char *markup;
gchar *app_name;
@@ -784,7 +782,6 @@ xfce4_notifyd_config_setup_dialog(GtkBuilder *builder)
GtkAdjustment *adj;
GError *error = NULL;
gchar *current_theme;
- GKeyFile *notification_log;
NotificationLogWidgets log_widgets;
NotificationSlideoutWidgets slideout_widgets;
diff --git a/xfce4-notifyd/xfce-notify-daemon.c b/xfce4-notifyd/xfce-notify-daemon.c
index 4bff0a4..37608e1 100644
--- a/xfce4-notifyd/xfce-notify-daemon.c
+++ b/xfce4-notifyd/xfce-notify-daemon.c
@@ -460,7 +460,7 @@ xfce_notify_daemon_finalize(GObject *obj)
if(xndaemon->reserved_rectangles && xndaemon->monitors_workarea) {
- gint i, j;
+ gint i;
GdkScreen *screen = gdk_screen_get_default ();
GdkWindow *groot = gdk_screen_get_root_window(screen);
@@ -468,9 +468,9 @@ xfce_notify_daemon_finalize(GObject *obj)
gdk_window_remove_filter(groot, xfce_notify_rootwin_watch_workarea, xndaemon);
- for(j = 0; j < nmonitor; j++) {
- if (xndaemon->reserved_rectangles[j])
- g_list_free(xndaemon->reserved_rectangles[j]);
+ for(i = 0; i < nmonitor; i++) {
+ if (xndaemon->reserved_rectangles[i])
+ g_list_free(xndaemon->reserved_rectangles[i]);
}
g_free(xndaemon->reserved_rectangles);
@@ -1052,8 +1052,6 @@ notify_update_known_applications (XfconfChannel *channel, gchar *new_app_name)
GPtrArray *known_applications;
GValue *val;
gint index = 0;
- gint index_before = 0;
- gint index_after = 0;
val = g_new0 (GValue, 1);
g_value_init (val, G_TYPE_STRING);
@@ -1146,7 +1144,7 @@ notify_notify (XfceNotifyGBus *skeleton,
gboolean transient = FALSE;
GVariant *item;
GVariantIter iter;
- guint OUT_id;
+ guint OUT_id = xfce_notify_daemon_generate_id(xndaemon);
gboolean application_is_muted = FALSE;
g_variant_iter_init (&iter, hints);
@@ -1292,7 +1290,6 @@ notify_notify (XfceNotifyGBus *skeleton,
xndaemon->css_provider));
xfce_notify_window_set_opacity(window, xndaemon->initial_opacity);
- OUT_id = xfce_notify_daemon_generate_id(xndaemon);
g_object_set_data(G_OBJECT(window), "--notify-id",
GUINT_TO_POINTER(OUT_id));
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list