Fixed building for macOS 10.12 with the macOS 10.13 SDK after r219644.
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 22 Jul 2017 22:31:00 +0000 (22:31 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 22 Jul 2017 22:31:00 +0000 (22:31 +0000)
* 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.

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

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVStreamSession.mm

index d28465b4ed1b53d1809976fc791d82ea1b8fe82e..c81cc75ef242920a718f5361eb1cdbc2d335657a 100644 (file)
@@ -1,3 +1,12 @@
+2017-07-22  Dan Bernstein  <mitz@apple.com>
+
+        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  <cdumez@apple.com>
 
         Merge ExceptionBase into DOMException and drop custom toString
index e965ef419c2ea6fbe212ef4c1724be43ea9be383..9fe30c781cbda05d8760d86eee96ef91dfb8bee0 100644 (file)
@@ -198,8 +198,11 @@ bool CDMSessionAVStreamSession::update(Uint8Array* key, RefPtr<Uint8Array>& next
 
         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;
     }