aboutsummaryrefslogtreecommitdiffstats
path: root/liblights
diff options
context:
space:
mode:
authorZiyan <jaraidaniel@gmail.com>2016-09-15 10:59:48 +0200
committerAndreas Blaesius <skate4life@gmx.de>2016-09-24 13:51:55 +0200
commit1f1cd98e3dc8a03d437ca64b81912c3c0fed633d (patch)
tree17ad853b593102620f5a72bf93757dc93e6a088f /liblights
parent1186c87449becc7998c927aa8168f8de00dc712d (diff)
downloaddevice_samsung_espressowifi-1f1cd98e3dc8a03d437ca64b81912c3c0fed633d.zip
device_samsung_espressowifi-1f1cd98e3dc8a03d437ca64b81912c3c0fed633d.tar.gz
device_samsung_espressowifi-1f1cd98e3dc8a03d437ca64b81912c3c0fed633d.tar.bz2
liblights: build with -Wall -Werror
Change-Id: Iec9293de656600eed6ac9da23bb27a13520b7cb0
Diffstat (limited to 'liblights')
-rwxr-xr-xliblights/Android.mk1
-rw-r--r--liblights/lights.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/liblights/Android.mk b/liblights/Android.mk
index aaa3a96..d694fc0 100755
--- a/liblights/Android.mk
+++ b/liblights/Android.mk
@@ -21,6 +21,7 @@ include $(CLEAR_VARS)
LOCAL_SRC_FILES := lights.c
+LOCAL_CFLAGS := -Wall -Werror
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
diff --git a/liblights/lights.c b/liblights/lights.c
index dc3fdb4..dcab8a3 100644
--- a/liblights/lights.c
+++ b/liblights/lights.c
@@ -19,6 +19,7 @@
#include <cutils/log.h>
#include <stdint.h>
+#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>