Title: [241316] trunk/Source
Revision
241316
Author
[email protected]
Date
2019-02-12 13:35:59 -0800 (Tue, 12 Feb 2019)

Log Message

Unreviewed, fix build warnings after content extensions enablement
https://bugs.webkit.org/show_bug.cgi?id=193622
<rdar://problem/47982850>

Source/WebCore:

* contentextensions/DFABytecode.h:
(WebCore::ContentExtensions::instructionSizeWithArguments):
* contentextensions/DFABytecodeCompiler.h:
* contentextensions/URLFilterParser.cpp:
(WebCore::ContentExtensions::URLFilterParser::statusString):

Source/WebKit:

* UIProcess/API/C/WKUserContentExtensionStoreRef.cpp:
(toResult):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (241315 => 241316)


--- trunk/Source/WebCore/ChangeLog	2019-02-12 21:21:56 UTC (rev 241315)
+++ trunk/Source/WebCore/ChangeLog	2019-02-12 21:35:59 UTC (rev 241316)
@@ -1,3 +1,15 @@
+2019-02-12  Michael Catanzaro  <[email protected]>
+
+        Unreviewed, fix build warnings after content extensions enablement
+        https://bugs.webkit.org/show_bug.cgi?id=193622
+        <rdar://problem/47982850>
+
+        * contentextensions/DFABytecode.h:
+        (WebCore::ContentExtensions::instructionSizeWithArguments):
+        * contentextensions/DFABytecodeCompiler.h:
+        * contentextensions/URLFilterParser.cpp:
+        (WebCore::ContentExtensions::URLFilterParser::statusString):
+
 2019-02-12  Justin Fan  <[email protected]>
 
         [Web GPU] DepthStencilAttachment implementation

Modified: trunk/Source/WebCore/contentextensions/DFABytecode.h (241315 => 241316)


--- trunk/Source/WebCore/contentextensions/DFABytecode.h	2019-02-12 21:21:56 UTC (rev 241315)
+++ trunk/Source/WebCore/contentextensions/DFABytecode.h	2019-02-12 21:35:59 UTC (rev 241316)
@@ -126,6 +126,7 @@
     case DFABytecodeInstruction::Terminate:
         return sizeof(DFABytecodeInstruction);
     }
+    RELEASE_ASSERT_NOT_REACHED();
 }
     
 } // namespace ContentExtensions    

Modified: trunk/Source/WebCore/contentextensions/DFABytecodeCompiler.h (241315 => 241316)


--- trunk/Source/WebCore/contentextensions/DFABytecodeCompiler.h	2019-02-12 21:21:56 UTC (rev 241315)
+++ trunk/Source/WebCore/contentextensions/DFABytecodeCompiler.h	2019-02-12 21:35:59 UTC (rev 241316)
@@ -64,7 +64,7 @@
     struct JumpTable {
         ~JumpTable()
         {
-            ASSERT(min + destinations.size() == max + 1);
+            ASSERT(min + destinations.size() == static_cast<size_t>(max + 1));
             ASSERT(min == max || destinations.size() > 1);
         }
 

Modified: trunk/Source/WebCore/contentextensions/URLFilterParser.cpp (241315 => 241316)


--- trunk/Source/WebCore/contentextensions/URLFilterParser.cpp	2019-02-12 21:21:56 UTC (rev 241315)
+++ trunk/Source/WebCore/contentextensions/URLFilterParser.cpp	2019-02-12 21:35:59 UTC (rev 241316)
@@ -403,6 +403,8 @@
     case InvalidQuantifier:
         return "Arbitrary atom repetitions are not supported.";
     }
+
+    RELEASE_ASSERT_NOT_REACHED();
 }
     
 } // namespace ContentExtensions

Modified: trunk/Source/WebKit/ChangeLog (241315 => 241316)


--- trunk/Source/WebKit/ChangeLog	2019-02-12 21:21:56 UTC (rev 241315)
+++ trunk/Source/WebKit/ChangeLog	2019-02-12 21:35:59 UTC (rev 241316)
@@ -1,3 +1,12 @@
+2019-02-12  Michael Catanzaro  <[email protected]>
+
+        Unreviewed, fix build warnings after content extensions enablement
+        https://bugs.webkit.org/show_bug.cgi?id=193622
+        <rdar://problem/47982850>
+
+        * UIProcess/API/C/WKUserContentExtensionStoreRef.cpp:
+        (toResult):
+
 2019-02-12  Tim Horton  <[email protected]>
 
         Switching focus from a UITextField to an editable WKWebView causes the keyboard to dance

Modified: trunk/Source/WebKit/UIProcess/API/C/WKUserContentExtensionStoreRef.cpp (241315 => 241316)


--- trunk/Source/WebKit/UIProcess/API/C/WKUserContentExtensionStoreRef.cpp	2019-02-12 21:21:56 UTC (rev 241315)
+++ trunk/Source/WebKit/UIProcess/API/C/WKUserContentExtensionStoreRef.cpp	2019-02-12 21:35:59 UTC (rev 241316)
@@ -68,6 +68,8 @@
     case API::ContentRuleListStore::Error::RemoveFailed:
         return kWKUserContentExtensionStoreRemoveFailed;
     }
+
+    RELEASE_ASSERT_NOT_REACHED();
 }
 #endif
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to