Skip to content

Commit

Permalink
Merge r241316 - Unreviewed, fix build warnings after content extensio…
Browse files Browse the repository at this point in the history
…ns 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):
  • Loading branch information
mcatanzaro authored and carlosgcampos committed Feb 13, 2019
1 parent db84951 commit 2c1c6b8
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 1 deletion.
12 changes: 12 additions & 0 deletions Source/WebCore/ChangeLog
@@ -1,3 +1,15 @@
2019-02-12 Michael Catanzaro <mcatanzaro@igalia.com>

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 Youenn Fablet <youenn@apple.com>

Make use of is<SubresourceLoader>
Expand Down
1 change: 1 addition & 0 deletions Source/WebCore/contentextensions/DFABytecode.h
Expand Up @@ -126,6 +126,7 @@ static inline size_t instructionSizeWithArguments(DFABytecodeInstruction instruc
case DFABytecodeInstruction::Terminate:
return sizeof(DFABytecodeInstruction);
}
RELEASE_ASSERT_NOT_REACHED();
}

} // namespace ContentExtensions
Expand Down
2 changes: 1 addition & 1 deletion Source/WebCore/contentextensions/DFABytecodeCompiler.h
Expand Up @@ -64,7 +64,7 @@ class WEBCORE_EXPORT DFABytecodeCompiler {
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);
}

Expand Down
2 changes: 2 additions & 0 deletions Source/WebCore/contentextensions/URLFilterParser.cpp
Expand Up @@ -403,6 +403,8 @@ String URLFilterParser::statusString(ParseStatus status)
case InvalidQuantifier:
return "Arbitrary atom repetitions are not supported.";
}

RELEASE_ASSERT_NOT_REACHED();
}

} // namespace ContentExtensions
Expand Down
9 changes: 9 additions & 0 deletions Source/WebKit/ChangeLog
@@ -1,3 +1,12 @@
2019-02-12 Michael Catanzaro <mcatanzaro@igalia.com>

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 Youenn Fablet <youenn@apple.com>

Make use of is<SubresourceLoader>
Expand Down
Expand Up @@ -68,6 +68,8 @@ static inline WKUserContentExtensionStoreResult toResult(const std::error_code&
case API::ContentRuleListStore::Error::RemoveFailed:
return kWKUserContentExtensionStoreRemoveFailed;
}

RELEASE_ASSERT_NOT_REACHED();
}
#endif

Expand Down

0 comments on commit 2c1c6b8

Please sign in to comment.