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

Commit eb4c32d2 authored by Alex Deymo's avatar Alex Deymo
Browse files

Silence warning about unused variables in BRILLO.

This patch moves the call to validateClientPermissionsLocked() outside
the #if so it is executed in Brillo builds anyway, but the result is
ignored. This fixes the warning about unused parameters which was
causing the build to fail.

Bug: 31068444
Test: `make dist` in Brillo

Change-Id: I8a6648bf2221406068c9f5a1850a59ae0bde03ca
parent 84183ba4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -925,9 +925,9 @@ Status CameraService::validateConnectLocked(const String8& cameraId,
        const String8& clientName8, /*inout*/int& clientUid, /*inout*/int& clientPid,
        /*out*/int& originalClientPid) const {

#if !defined(__BRILLO__)
    Status allowed = validateClientPermissionsLocked(cameraId, clientName8, clientUid, clientPid,
            originalClientPid);
#if !defined(__BRILLO__)
    if (!allowed.isOk()) {
        return allowed;
    }