[gnome-control-center/wip/hadess/power-fixes: 2/9] power: Fix compilation with test features enabled
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/hadess/power-fixes: 2/9] power: Fix compilation with test features enabled
- Date: Mon, 6 Jul 2020 15:28:07 +0000 (UTC)
commit af14cda49686a76ce8ba934e9317283c43627701
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]