Use -Werror in hardware/interfaces

* Fix warning of unused result.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I68e35ddcdeec4290b075ececf14f82335b43e22e
This commit is contained in:
Chih-Hung Hsieh
2017-10-04 22:22:46 -07:00
parent 8e5f008ae6
commit ceb435f2ba
4 changed files with 6 additions and 1 deletions

View File

@@ -16,6 +16,7 @@
cc_binary { cc_binary {
name: "android.hardware.tests.extension.light@2.0-service", name: "android.hardware.tests.extension.light@2.0-service",
defaults: ["hidl_defaults"],
init_rc: ["android.hardware.tests.extension.light@2.0-service.rc"], init_rc: ["android.hardware.tests.extension.light@2.0-service.rc"],
vendor: true, vendor: true,
relative_install_path: "hw", relative_install_path: "hw",

View File

@@ -30,6 +30,8 @@ using android::hardware::tests::extension::light::V2_0::implementation::Light;
int main() { int main() {
android::sp<ILight> service = new Light(); android::sp<ILight> service = new Light();
configureRpcThreadpool(1, true /*callerWillJoin*/); configureRpcThreadpool(1, true /*callerWillJoin*/);
service->registerAsService(); if (service->registerAsService() != android::OK) {
exit(1);
}
joinRpcThreadpool(); joinRpcThreadpool();
} }

View File

@@ -14,6 +14,7 @@
cc_binary { cc_binary {
name: "android.hardware.usb@1.0-service", name: "android.hardware.usb@1.0-service",
defaults: ["hidl_defaults"],
init_rc: ["android.hardware.usb@1.0-service.rc"], init_rc: ["android.hardware.usb@1.0-service.rc"],
relative_install_path: "hw", relative_install_path: "hw",
vendor: true, vendor: true,

View File

@@ -31,6 +31,7 @@ cc_library_shared {
cc_binary { cc_binary {
name: "android.hardware.vibrator@1.0-service", name: "android.hardware.vibrator@1.0-service",
defaults: ["hidl_defaults"],
init_rc: ["android.hardware.vibrator@1.0-service.rc"], init_rc: ["android.hardware.vibrator@1.0-service.rc"],
vendor: true, vendor: true,
relative_install_path: "hw", relative_install_path: "hw",