[Xfce4-commits] [panel-plugins/xfce4-statusnotifier-plugin] 01/02: Fix some compilation warnings with --enable-debug
noreply at xfce.org
noreply at xfce.org
Mon Jul 17 18:35:13 CEST 2017
This is an automated email from the git hooks/post-receive script.
n i n e t l s 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 panel-plugins/xfce4-statusnotifier-plugin.
commit 4d82cd807e821adce1fe3ce597fd73d65733dca1
Author: Viktor Odintsev <ninetls at xfce.org>
Date: Mon Jul 17 19:23:39 2017 +0300
Fix some compilation warnings with --enable-debug
---
panel-plugin/sn-button.c | 3 +--
panel-plugin/sn-config.c | 2 +-
panel-plugin/sn-item.c | 8 ++++----
panel-plugin/sn-plugin.c | 3 +--
4 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/panel-plugin/sn-button.c b/panel-plugin/sn-button.c
index 779c2d0..6dcf23a 100644
--- a/panel-plugin/sn-button.c
+++ b/panel-plugin/sn-button.c
@@ -168,8 +168,7 @@ sn_button_new (SnItem *item,
gpointer pos_func_data,
SnConfig *config)
{
- SnButton *button = g_object_new (XFCE_TYPE_SN_BUTTON, NULL);
- GtkWidget *image, *menu;
+ SnButton *button = g_object_new (XFCE_TYPE_SN_BUTTON, NULL);
g_return_val_if_fail (XFCE_IS_SN_ITEM (item), NULL);
g_return_val_if_fail (XFCE_IS_SN_CONFIG (config), NULL);
diff --git a/panel-plugin/sn-config.c b/panel-plugin/sn-config.c
index 80a56d5..a5604b1 100644
--- a/panel-plugin/sn-config.c
+++ b/panel-plugin/sn-config.c
@@ -713,7 +713,7 @@ gboolean
sn_config_items_clear (SnConfig *config)
{
GHashTable *collected_known_items;
- gint initial_size;
+ guint initial_size;
GList *new_list, *li;
collected_known_items = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
diff --git a/panel-plugin/sn-item.c b/panel-plugin/sn-item.c
index 294d950..ff563a4 100644
--- a/panel-plugin/sn-item.c
+++ b/panel-plugin/sn-item.c
@@ -597,9 +597,9 @@ sn_item_pixbuf_equals (GdkPixbuf *p1,
{
guchar *p1p, *p2p;
guint p1l, p2l;
- gint i;
+ guint i;
- if (p1 == p2 || p1 == NULL && p2 == NULL)
+ if (p1 == p2 || (p1 == NULL && p2 == NULL))
return TRUE;
if ((p1 == NULL) != (p2 == NULL))
@@ -611,7 +611,7 @@ sn_item_pixbuf_equals (GdkPixbuf *p1,
if (p1l != p2l)
return FALSE;
- for (gint i = 0; i < p1l; i++)
+ for (i = 0; i < p1l; i++)
if (p1p[i] != p2p[i])
return FALSE;
@@ -648,7 +648,7 @@ sn_item_extract_pixbuf (GVariant *variant)
{
size = g_variant_get_size (array_value);
/* sanity check */
- if (size == 4 * width * height)
+ if (size == (gsize)(4 * width * height))
{
/* find the largest image */
data = g_variant_get_data (array_value);
diff --git a/panel-plugin/sn-plugin.c b/panel-plugin/sn-plugin.c
index ee59208..de9582e 100644
--- a/panel-plugin/sn-plugin.c
+++ b/panel-plugin/sn-plugin.c
@@ -228,8 +228,7 @@ sn_plugin_item_removed (SnPlugin *plugin,
static void
sn_plugin_construct (XfcePanelPlugin *panel_plugin)
{
- SnPlugin *plugin = XFCE_SN_PLUGIN (panel_plugin);
- GtkWidget *label;
+ SnPlugin *plugin = XFCE_SN_PLUGIN (panel_plugin);
xfce_textdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR, "UTF-8");
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list