summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Nikita Ioffe <ioffe@google.com> 2019-06-24 13:12:54 -0700
committer android-build-merger <android-build-merger@google.com> 2019-06-24 13:12:54 -0700
commit52517afa6c6e24fdf8aab6e47706496900b2b806 (patch)
tree483bbad45752062ca370866186736f44f6d2b57d
parent14492fe6743f1950b6f8458c237a7ab3083f10b0 (diff)
parentdd2f694038c6b5a0bd646ebc029e2157f911d515 (diff)
Merge "Suppress warn_unused_result warning in otapreopt_chroot"
am: dd2f694038 Change-Id: Ib1f5f50373e2a38b4ba3fec52f6c8b97ffc783b6
-rw-r--r--cmds/installd/otapreopt_chroot.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmds/installd/otapreopt_chroot.cpp b/cmds/installd/otapreopt_chroot.cpp
index 2e2cc182ec..e8f513aebb 100644
--- a/cmds/installd/otapreopt_chroot.cpp
+++ b/cmds/installd/otapreopt_chroot.cpp
@@ -64,7 +64,8 @@ static std::vector<apex::ApexFile> ActivateApexPackages() {
// system/apex/apexd/apexd_main.cpp.
//
// Only scan the APEX directory under /system (within the chroot dir).
- apex::scanPackagesDirAndActivate(apex::kApexPackageSystemDir);
+ // Cast call to void to suppress warn_unused_result.
+ static_cast<void>(apex::scanPackagesDirAndActivate(apex::kApexPackageSystemDir));
return apex::getActivePackages();
}