Commit 42d6bba4 authored by Rox-'s avatar Rox-

liblights: Fix warnings

parent e9798af0
......@@ -28,6 +28,8 @@
#include <sys/types.h>
#include <hardware/lights.h>
#define UNUSED __attribute__((unused))
static pthread_once_t g_init = PTHREAD_ONCE_INIT;
static pthread_mutex_t g_lock = PTHREAD_MUTEX_INITIALIZER;
......@@ -138,7 +140,7 @@ static int is_lit(struct light_state_t const* state)
return state->color & 0x00ffffff;
}
static int set_light_backlight(struct light_device_t *dev,
static int set_light_backlight(UNUSED struct light_device_t *dev,
struct light_state_t const *state)
{
int err = 0;
......@@ -152,7 +154,7 @@ static int set_light_backlight(struct light_device_t *dev,
}
static int
set_light_buttons(struct light_device_t* dev,
set_light_buttons(UNUSED struct light_device_t* dev,
struct light_state_t const* state)
{
int err = 0;
......@@ -273,19 +275,19 @@ switched:
return err;
}
static int set_light_leds_battery(struct light_device_t *dev,
static int set_light_leds_battery(UNUSED struct light_device_t *dev,
struct light_state_t const *state)
{
return set_light_leds(state, 0);
}
static int set_light_leds_notifications(struct light_device_t *dev,
static int set_light_leds_notifications(UNUSED struct light_device_t *dev,
struct light_state_t const *state)
{
return set_light_leds(state, 1);
}
static int set_light_leds_attention(struct light_device_t *dev,
static int set_light_leds_attention(UNUSED struct light_device_t *dev,
struct light_state_t const *state)
{
struct light_state_t fixed;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment