| Summary: | WebKit::UserData::decode() and encode() do not need a default: case | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | David Kilzer (:ddkilzer) <ddkilzer> | ||||
| Component: | WebKit2 | Assignee: | David Kilzer (:ddkilzer) <ddkilzer> | ||||
| Status: | RESOLVED INVALID | ||||||
| Severity: | Normal | CC: | useafterfree, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | Other | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=214587 | ||||||
| Attachments: |
|
||||||
|
Description
David Kilzer (:ddkilzer)
2020-07-21 09:58:10 PDT
Created attachment 404829 [details]
Patch v1
Heh...didn't realize how many "missing" values there were:
In file included from /Volumes/Data/worker/iOS-13-Build-EWS/build/WebKitBuild/Release-iphoneos/DerivedSources/WebKit2/unified-sources/UnifiedSource23.cpp:4:
/Volumes/Data/worker/iOS-13-Build-EWS/build/Source/WebKit/Shared/UserData.cpp:171:20: error: 111 enumeration values not handled in switch: 'Null', 'AuthenticationChallenge', 'AuthenticationDecisionListener'... [-Werror,-Wswitch]
switch (object.type()) {
^
/Volumes/Data/worker/iOS-13-Build-EWS/build/Source/WebKit/Shared/UserData.cpp:171:20: note: add missing switch cases
switch (object.type()) {
^
/Volumes/Data/worker/iOS-13-Build-EWS/build/Source/WebKit/Shared/UserData.cpp:342:13: error: 110 enumeration values not handled in switch: 'AuthenticationChallenge', 'AuthenticationDecisionListener', 'Connection'... [-Werror,-Wswitch]
Don't need to fix this.
|