summaryrefslogtreecommitdiff
path: root/libs/binder/IServiceManager.cpp
diff options
context:
space:
mode:
author Tomasz Wasilczyk <twasilczyk@google.com> 2024-04-30 10:37:32 -0700
committer Tomasz Wasilczyk <twasilczyk@google.com> 2024-05-17 12:52:01 -0700
commite97f3a8580fb85f06386e187f8e6f64fcfb54ea9 (patch)
tree5214377bf7627af17b44c423fda1bb29212c194a /libs/binder/IServiceManager.cpp
parent7ef191c8e2b6313197bfad7127e6d7dfd5648394 (diff)
Fix libbinder_sdk build warnings
-Wdeprecated-declarations -Wformat -Wpessimizing-move -Wsign-compare -Wsubobject-linkage -Wunused-result -Wzero-as-null-pointer-constant (turned on in ag/4503295) Bug: 285204695 Test: m libbinder_sdk Change-Id: Id4a482c511244968e450fdeecf6b9de41bc65b04
Diffstat (limited to 'libs/binder/IServiceManager.cpp')
-rw-r--r--libs/binder/IServiceManager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/binder/IServiceManager.cpp b/libs/binder/IServiceManager.cpp
index 39573ec54d..fbcf823045 100644
--- a/libs/binder/IServiceManager.cpp
+++ b/libs/binder/IServiceManager.cpp
@@ -20,6 +20,7 @@
#include <inttypes.h>
#include <unistd.h>
+#include <condition_variable>
#include <android-base/properties.h>
#include <android/os/BnServiceCallback.h>
@@ -642,7 +643,7 @@ public:
protected:
// Override realGetService for ServiceManagerShim::waitForService.
- Status realGetService(const std::string& name, sp<IBinder>* _aidl_return) {
+ Status realGetService(const std::string& name, sp<IBinder>* _aidl_return) override {
*_aidl_return = getDeviceService({"-g", name}, mOptions);
return Status::ok();
}