Offload HAL Service: Enable errors for warnings

Update compile flags for this module so that warnings will report errors
during compilation. Also fixed one unused variable.

Bug: 32842314
Test: VTS
Change-Id: I0249cbbc26cbd23a3c9c5d013f303e13ea74a749
This commit is contained in:
Sohani Rao
2017-05-18 18:56:33 -07:00
parent 0b8ea9dd76
commit cedcec272b
2 changed files with 2 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ cc_library_static {
"offload_status_util.cpp",
"offload_utils.cpp",
],
cflags: ["-Wall", "-Wextra"],
cflags: ["-Wall", "-Wextra", "-Werror"],
shared_libs: [
"libbase",
"libhidlbase",

View File

@@ -24,7 +24,7 @@ class HidlDeathHandler : public android::hardware::hidl_death_recipient {
// Death notification for callbacks.
void serviceDied(uint64_t cookie,
const android::wp<android::hidl::base::V1_0::IBase> &who) override {
const android::wp<android::hidl::base::V1_0::IBase>& /* who */) override {
cb_.clear();
cb_function_(cookie);
}