[gnome-control-center/wip/hadess/power-fixes: 1/3] power: Fix compilation with test features enabled



commit 4d310942e733d64dce08ec9743032700094356bb
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Jun 11 14:49:33 2020 +0200

    power: Fix compilation with test features enabled

 panels/power/cc-power-panel.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/panels/power/cc-power-panel.c b/panels/power/cc-power-panel.c
index 7afadf9c9..817a749c2 100644
--- a/panels/power/cc-power-panel.c
+++ b/panels/power/cc-power-panel.c
@@ -831,6 +831,7 @@ up_client_changed (CcPowerPanel *self)
 #ifdef TEST_FAKE_DEVICES
   {
     static gboolean fake_devices_added = FALSE;
+    UpDevice *device;
 
     if (!fake_devices_added)
       {
@@ -879,6 +880,7 @@ up_client_changed (CcPowerPanel *self)
 #ifdef TEST_UPS
   {
     static gboolean fake_devices_added = FALSE;
+    UpDevice *device;
 
     if (!fake_devices_added)
       {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]