Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 838396ff authored by Pawan Wagh's avatar Pawan Wagh
Browse files

Ignore getService deprecation warning in IServiceManager

Test: m libbinder
Bug: 264944281
Change-Id: Ie7cf9bee76c868e11c7996a73c592740adc808db
parent 4cd03732
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;