Commit 958d54e9 authored by stkhapugin@chromium.org's avatar stkhapugin@chromium.org Committed by Commit Bot

Fix iOS canary compilation.

Currently compilation fails because there's an iOS 11 only constant
in a switch-case, so there's a warning -Wunguarded-availability-new.
This silences the warning when compiling this case.

Bug: 
Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
Change-Id: I3fe6bc7e66a16c3a8590af3472f345f8a883e452
Reviewed-on: https://chromium-review.googlesource.com/774858Reviewed-by: default avatarOlivier Robin <olivierrobin@chromium.org>
Commit-Queue: Olivier Robin <olivierrobin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#517101}
parent 146471c6
......@@ -369,9 +369,12 @@
[self setCameraState:qr_scanner::MULTIPLE_FOREGROUND_APPS];
break;
#if defined(__IPHONE_11_1) && (__IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_11_1)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunguarded-availability-new"
case AVCaptureSessionInterruptionReasonVideoDeviceNotAvailableDueToSystemPressure:
[self setCameraState:qr_scanner::CAMERA_UNAVAILABLE_DUE_TO_SYSTEM_PRESSURE];
break;
#pragma clang diagnostic pop
#endif
case AVCaptureSessionInterruptionReasonAudioDeviceInUseByAnotherClient:
NOTREACHED();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment