From fd2e518ce7f63e699f560460bf65923e25e166a8 Mon Sep 17 00:00:00 2001 From: Chih-Wei Huang Date: Fri, 16 Oct 2015 00:16:50 +0800 Subject: [PATCH] include the header of malloc/free prototypes Fixes building errors of marshmallow-x86 for the 64-bit target. Also fixes the warning of unused parameter 'dev'. --- lights.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lights.c b/lights.c index 22896c7..09ab603 100644 --- a/lights.c +++ b/lights.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include @@ -90,7 +91,7 @@ static int rgb_to_brightness16(struct light_state_t const* state) return ((77*((color>>16)&0x00ff)) + (150*((color>>8)&0x00ff)) + (29*(color&0x00ff))); } -static int set_light_backlight(struct light_device_t* dev, struct light_state_t const* state) +static int set_light_backlight(struct light_device_t* dev __attribute__ ((__unused__)), struct light_state_t const* state) { int err = 0; int brightness = rgb_to_brightness16(state); -- 2.11.0