aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZiyan <jaraidaniel@gmail.com>2016-09-15 20:27:27 +0200
committerAndreas Blaesius <skate4life@gmx.de>2016-09-26 19:54:30 +0200
commitfab470995f7b448a60f5bec27b33b28ec9c26061 (patch)
tree4cf2f1778263fa5aa6cc0c2e73b02232af49e2e3
parent4ad377e969cf26a7fd0e9d39872122b17fea41c9 (diff)
downloaddevice_samsung_espressowifi-fab470995f7b448a60f5bec27b33b28ec9c26061.zip
device_samsung_espressowifi-fab470995f7b448a60f5bec27b33b28ec9c26061.tar.gz
device_samsung_espressowifi-fab470995f7b448a60f5bec27b33b28ec9c26061.tar.bz2
liblights: fix build with clang
Change-Id: I47176837e534e0628fdb0216f55ec001a1d4e982
-rw-r--r--liblights/lights.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/liblights/lights.c b/liblights/lights.c
index dcab8a3..fa55178 100644
--- a/liblights/lights.c
+++ b/liblights/lights.c
@@ -61,12 +61,6 @@ write_int(char const *path, int value)
}
}
-static int
-is_lit(struct light_state_t const* state)
-{
- return state->color & 0x00ffffff;
-}
-
static int
rgb_to_brightness(struct light_state_t const *state)
{
@@ -77,7 +71,7 @@ rgb_to_brightness(struct light_state_t const *state)
}
static int
-set_light_backlight(struct light_device_t *dev,
+set_light_backlight(struct light_device_t *dev __unused,
struct light_state_t const *state)
{
int err = 0;