Unreviewed, fix the build by ignoring some deprecation warnings.
authorryanhaddad@apple.com <ryanhaddad@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 6 Aug 2018 17:25:13 +0000 (17:25 +0000)
committerryanhaddad@apple.com <ryanhaddad@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 6 Aug 2018 17:25:13 +0000 (17:25 +0000)
* wtf/MD5.cpp:
(WTF::MD5::MD5):
(WTF::MD5::addBytes):
(WTF::MD5::checksum):

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

Source/WTF/ChangeLog
Source/WTF/wtf/MD5.cpp

index f0e47f3..a0402c5 100644 (file)
@@ -1,3 +1,12 @@
+2018-08-03  Ryan Haddad  <ryanhaddad@apple.com>
+
+        Unreviewed, fix the build by ignoring some deprecation warnings.
+
+        * wtf/MD5.cpp:
+        (WTF::MD5::MD5):
+        (WTF::MD5::addBytes):
+        (WTF::MD5::checksum):
+
 2018-08-03  Ben Richards  <benton_richards@apple.com>
 
         We should cache the compiled sandbox profile in a data vault
index b66da18..e49ba1b 100644 (file)
@@ -59,17 +59,26 @@ namespace WTF {
 
 MD5::MD5()
 {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     CC_MD5_Init(&m_context);
+#pragma clang diagnostic pop
 }
 
 void MD5::addBytes(const uint8_t* input, size_t length)
 {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     CC_MD5_Update(&m_context, input, length);
+#pragma clang diagnostic pop
 }
 
 void MD5::checksum(Digest& hash)
 {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     CC_MD5_Final(hash.data(), &m_context);
+#pragma clang diagnostic pop
 }
     
 #else