Use -Werror in hardware/interfaces/light/2.0
authorChih-Hung Hsieh <chh@google.com>
Mon, 20 Nov 2017 22:06:42 +0000 (14:06 -0800)
committerChih-hung Hsieh <chh@google.com>
Tue, 28 Nov 2017 17:13:03 +0000 (17:13 +0000)
Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: If922bef89eba554c37b74a574bb0a042cfad46c7
Merged-In: I15c4779a7c9eea39fb20746f69800dcf20670275

light/2.0/default/Android.mk

index 1f44e664380d22b313b9b325a7aa545b81438f62..da75e1a6a448cf18cc6734e0911fcea26792605d 100644 (file)
@@ -7,6 +7,8 @@ LOCAL_MODULE_RELATIVE_PATH := hw
 LOCAL_SRC_FILES := \
     Light.cpp \
 
+LOCAL_CFLAGS := -Wall -Werror
+
 LOCAL_SHARED_LIBRARIES := \
     libhidlbase \
     libhidltransport \
@@ -28,6 +30,8 @@ LOCAL_INIT_RC := android.hardware.light@2.0-service.rc
 LOCAL_SRC_FILES := \
     service.cpp \
 
+LOCAL_CFLAGS := -Wall -Werror
+
 LOCAL_SHARED_LIBRARIES := \
     liblog \
     libcutils \