Build fix.
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Jan 2017 19:25:56 +0000 (19:25 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Jan 2017 19:25:56 +0000 (19:25 +0000)
Rubber-stamped by Anders Carlsson.

* UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm:
(WebKit::toPKPaymentAuthorizationStatus): Suppressed deprecation warnings.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@210933 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm

index 7b10171..0acf415 100644 (file)
@@ -1,3 +1,12 @@
+2017-01-19  Dan Bernstein  <mitz@apple.com>
+
+        Build fix.
+
+        Rubber-stamped by Anders Carlsson.
+
+        * UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm:
+        (WebKit::toPKPaymentAuthorizationStatus): Suppressed deprecation warnings.
+
 2017-01-19  Myles C. Maxfield  <mmaxfield@apple.com>
 
         [Cocoa] Variation fonts are erroneously disabled on iOS
index 6329160..ce86660 100644 (file)
@@ -435,6 +435,8 @@ RetainPtr<PKPaymentRequest> toPKPaymentRequest(WebPageProxy& webPageProxy, const
 
 static PKPaymentAuthorizationStatus toPKPaymentAuthorizationStatus(WebCore::PaymentAuthorizationStatus status)
 {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     switch (status) {
     case WebCore::PaymentAuthorizationStatus::Success:
         return PKPaymentAuthorizationStatusSuccess;
@@ -453,6 +455,7 @@ static PKPaymentAuthorizationStatus toPKPaymentAuthorizationStatus(WebCore::Paym
     case WebCore::PaymentAuthorizationStatus::PINLockout:
         return PKPaymentAuthorizationStatusPINLockout;
     }
+#pragma clang diagnostic pop
 }
 
 void WebPaymentCoordinatorProxy::platformCompletePaymentSession(WebCore::PaymentAuthorizationStatus status)