[Xfce4-commits] [apps/parole] 02/02: Fix compiler warning

noreply at xfce.org noreply at xfce.org
Wed Aug 14 20:59:48 CEST 2019


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/parole.

commit 99dd76bfd65def4ff4538bbfbd5f120f4dca246d
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Wed Aug 14 20:59:27 2019 +0200

    Fix compiler warning
    
    control reaches end of non-void function
---
 src/common/parole-powermanager.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/common/parole-powermanager.c b/src/common/parole-powermanager.c
index 020af0c..e41f0b8 100644
--- a/src/common/parole-powermanager.c
+++ b/src/common/parole-powermanager.c
@@ -61,15 +61,16 @@ parole_power_manager_inhibit (GDBusConnection *connection) {
                                          NULL,
                                          &error);
 
-    if (error) {
-        g_warning ("Inhibiting power management failed %s", error->message);
-        g_error_free (error);
-    }
     if (reply != NULL) {
         g_variant_get (reply, "(u)", &cookie, NULL);
         g_variant_unref (reply);
         return cookie;
     }
+    if (error) {
+        g_warning ("Inhibiting power management failed %s", error->message);
+        g_error_free (error);
+    }
+    return 0;
 }
 
 void

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


More information about the Xfce4-commits mailing list