Use -Werror in hardware/interfaces/biometrics/fingerprint

* Fix warning of unused function call result.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I91da207b80d0715d015195357d645f8cf324fa1e
This commit is contained in:
Chih-Hung Hsieh
2017-11-20 16:02:42 -08:00
parent 8500c095b9
commit 5631258f07
2 changed files with 4 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
cc_binary {
name: "android.hardware.biometrics.fingerprint@2.1-service",
defaults: ["hidl_defaults"],
init_rc: ["android.hardware.biometrics.fingerprint@2.1-service.rc"],
vendor: true,
relative_install_path: "hw",

View File

@@ -35,7 +35,9 @@ int main() {
configureRpcThreadpool(1, true /*callerWillJoin*/);
if (bio != nullptr) {
bio->registerAsService();
if (::android::OK != bio->registerAsService()) {
return 1;
}
} else {
ALOGE("Can't create instance of BiometricsFingerprint, nullptr");
}