diff options
| author | 2023-01-10 01:25:34 +0000 | |
|---|---|---|
| committer | 2023-01-10 01:29:09 +0000 | |
| commit | 838396ffa5bbdff0c212c00cd09ddf50b803fb1d (patch) | |
| tree | 522791dafeb1d2d4417009307f24f2db153fec15 /libs | |
| parent | 4cd0373251a9841920d26ccd6b0b50583b9ad026 (diff) | |
Ignore getService deprecation warning in IServiceManager
Test: m libbinder
Bug: 264944281
Change-Id: Ie7cf9bee76c868e11c7996a73c592740adc808db
Diffstat (limited to 'libs')
| -rw-r--r-- | libs/binder/include/binder/IServiceManager.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/binder/include/binder/IServiceManager.h b/libs/binder/include/binder/IServiceManager.h index 2af512ea3f..c78f870153 100644 --- a/libs/binder/include/binder/IServiceManager.h +++ b/libs/binder/include/binder/IServiceManager.h @@ -198,7 +198,10 @@ status_t getService(const String16& name, sp<INTERFACE>* outService) { const sp<IServiceManager> sm = defaultServiceManager(); if (sm != nullptr) { +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" *outService = interface_cast<INTERFACE>(sm->getService(name)); +#pragma clang diagnostic pop // getService deprecation if ((*outService) != nullptr) return NO_ERROR; } return NAME_NOT_FOUND; |