Title: [219767] trunk/Source/WebCore
Revision
219767
Author
[email protected]
Date
2017-07-22 15:31:00 -0700 (Sat, 22 Jul 2017)

Log Message

Fixed building for macOS 10.12 with the macOS 10.13 SDK after r219644.

* platform/graphics/avfoundation/objc/CDMSessionAVStreamSession.mm:
(WebCore::CDMSessionAVStreamSession::update): Suppress the objc-literal-conversion warning
  in one place where we are calling a class method on a Class and the compiler can’t tell
  which class it is, so it chooses wrong and emits a warning.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (219766 => 219767)


--- trunk/Source/WebCore/ChangeLog	2017-07-22 21:20:23 UTC (rev 219766)
+++ trunk/Source/WebCore/ChangeLog	2017-07-22 22:31:00 UTC (rev 219767)
@@ -1,3 +1,12 @@
+2017-07-22  Dan Bernstein  <[email protected]>
+
+        Fixed building for macOS 10.12 with the macOS 10.13 SDK after r219644.
+
+        * platform/graphics/avfoundation/objc/CDMSessionAVStreamSession.mm:
+        (WebCore::CDMSessionAVStreamSession::update): Suppress the objc-literal-conversion warning
+          in one place where we are calling a class method on a Class and the compiler can’t tell
+          which class it is, so it chooses wrong and emits a warning.
+
 2017-07-22  Chris Dumez  <[email protected]>
 
         Merge ExceptionBase into DOMException and drop custom toString

Modified: trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVStreamSession.mm (219766 => 219767)


--- trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVStreamSession.mm	2017-07-22 21:20:23 UTC (rev 219766)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVStreamSession.mm	2017-07-22 22:31:00 UTC (rev 219767)
@@ -198,8 +198,11 @@
 
         RetainPtr<NSData> certificateData = adoptNS([[NSData alloc] initWithBytes:m_certificate->data() length:m_certificate->length()]);
 
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wobjc-literal-conversion"
         if ([getAVStreamSessionClass() respondsToSelector:@selector(removePendingExpiredSessionReports:withAppIdentifier:storageDirectoryAtURL:)])
             [getAVStreamSessionClass() removePendingExpiredSessionReports:@[m_expiredSession.get()] withAppIdentifier:certificateData.get() storageDirectoryAtURL:[NSURL fileURLWithPath:storagePath()]];
+#pragma clang diagnostic pop
         m_expiredSession = nullptr;
         return true;
     }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to