Camera: Clean up warnings and set -Werror
- Also fix error logging template inconsistency
- Also add a few error handling cases into camera2 NDK
to deal with previously-ignored error codes
Bug: 27149500
Change-Id: I8f1f4c72252dd48d652f24b595b642199f20c327
diff --git a/camera/cameraserver/Android.mk b/camera/cameraserver/Android.mk
index 0207505..7e36c5e 100644
--- a/camera/cameraserver/Android.mk
+++ b/camera/cameraserver/Android.mk
@@ -29,6 +29,8 @@
LOCAL_MODULE:= cameraserver
LOCAL_32_BIT_ONLY := true
+LOCAL_CFLAGS += -Wall -Wextra -Werror -Wno-unused-parameter
+
LOCAL_INIT_RC := cameraserver.rc
include $(BUILD_EXECUTABLE)