summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Nikita Ioffe <ioffe@google.com> 2019-06-24 13:24:45 -0700
committer android-build-merger <android-build-merger@google.com> 2019-06-24 13:24:45 -0700
commit3a4a28ca49f64d800a0ca8f7bec6005070973ecc (patch)
tree16a535d4bc83894a60bdce841050b5888b3bd5cc
parent56d8b6252cf5284f878d883b4b6038fe37f6b1d3 (diff)
parent52517afa6c6e24fdf8aab6e47706496900b2b806 (diff)
Merge "Suppress warn_unused_result warning in otapreopt_chroot" am: dd2f694038
am: 52517afa6c Change-Id: I081975b812eada15aa9b4caa5e22776e6d040744
-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();
}