[Xfce4-commits] [xfce/xfce4-power-manager] 01/01: Trivial: Fix a couple compiler warnings

noreply at xfce.org noreply at xfce.org
Sat Feb 7 17:44:41 CET 2015


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository xfce/xfce4-power-manager.

commit 6200b9ffc13abc807b259987bae931c64235d880
Author: Eric Koegel <eric.koegel at gmail.com>
Date:   Sat Feb 7 19:33:17 2015 +0300

    Trivial: Fix a couple compiler warnings
    
    Remove a couple unused variables. Change another to unsigned to
    avoid a signed/unsigned comparison.
---
 settings/xfpm-settings.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/settings/xfpm-settings.c b/settings/xfpm-settings.c
index 90c7012..44b8086 100644
--- a/settings/xfpm-settings.c
+++ b/settings/xfpm-settings.c
@@ -823,7 +823,6 @@ lock_screen_toggled_cb (GtkWidget *w, XfconfChannel *channel)
     /* Light Locker Integration */
     if ( light_locker_settings )
     {
-        GtkWidget *widget;
         GVariant *variant;
         variant = g_variant_new_boolean (val);
         if (!g_settings_set_value (light_locker_settings, "lock-on-suspend", variant))
@@ -1524,7 +1523,7 @@ get_light_locker_path (void)
 {
     gchar** paths = NULL;
     gchar* path = NULL;
-    int i = 0;
+    unsigned int i = 0;
 
     /* Check if executable in path */
     paths = g_strsplit(g_getenv("PATH"), ":", 0);
@@ -1545,7 +1544,7 @@ get_light_locker_path (void)
 gchar *
 format_light_locker_value_cb (GtkScale *scale, gdouble value, gpointer data)
 {
-    gint h, min;
+    gint min;
 
     if ( (gint)value <= 0 )
         return g_strdup (_("Never"));

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list