power: Compile with -Wall -Wextra -Werror
* And fix the build errors
Change-Id: I183203edfd92d4672893d74aa7428bc9f5e17772
diff --git a/Android.mk b/Android.mk
index 44403fa..521574b 100644
--- a/Android.mk
+++ b/Android.mk
@@ -14,6 +14,8 @@
LOCAL_HEADER_LIBRARIES += libhardware_headers
LOCAL_SRC_FILES := power-common.c metadata-parser.c utils.c list.c hint-data.c Power.cpp main.cpp PowerHintSession.cpp
+LOCAL_CFLAGS += -Wall -Wextra -Werror
+
ifneq ($(BOARD_POWER_CUSTOM_BOARD_LIB),)
LOCAL_WHOLE_STATIC_LIBRARIES += $(BOARD_POWER_CUSTOM_BOARD_LIB)
else