1
0
forked from drath/libratbag

ratbagd: fix a false-positive unused variable warning

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2017-07-10 15:48:39 +10:00
committed by Benjamin Tissoires
parent 04990e4ea2
commit 01163d8f77
2 changed files with 5 additions and 5 deletions

View File

@@ -63,7 +63,7 @@ static int ratbagd_device_find_profile(sd_bus *bus,
{
_cleanup_(freep) char *name = NULL;
struct ratbagd_device *device = userdata;
unsigned int index;
unsigned int index = 0;
int r;
r = sd_bus_path_decode_many(path,

View File

@@ -67,7 +67,7 @@ static int ratbagd_profile_find_resolution(sd_bus *bus,
{
_cleanup_(freep) char *name = NULL;
struct ratbagd_profile *profile = userdata;
unsigned int index;
unsigned int index = 0;
int r;
r = sd_bus_path_decode_many(path,
@@ -248,7 +248,7 @@ static int ratbagd_profile_find_button(sd_bus *bus,
{
_cleanup_(freep) char *name = NULL;
struct ratbagd_profile *profile = userdata;
unsigned int index;
unsigned int index = 0;
int r;
r = sd_bus_path_decode_many(path,
@@ -279,7 +279,7 @@ static int ratbagd_profile_find_led(sd_bus *bus,
{
_cleanup_(freep) char *name = NULL;
struct ratbagd_profile *profile = userdata;
unsigned int index;
unsigned int index = 0;
int r;
r = sd_bus_path_decode_many(path,
@@ -329,7 +329,7 @@ static int ratbagd_profile_get_resolution_by_index(sd_bus_message *m,
{
struct ratbagd_profile *profile = userdata;
struct ratbagd_resolution *resolution;
unsigned int index;
unsigned int index = 0;
int r;
r = sd_bus_message_read(m, "u", &index);