Bug 267196
| Summary: | Fix warnings found by compiling with -Wmisleading-indentation | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | David Kilzer (:ddkilzer) <ddkilzer> |
| Component: | WebCore Misc. | Assignee: | David Kilzer (:ddkilzer) <ddkilzer> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Other | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Bug Depends on: | 126724, 219688 | ||
| Bug Blocks: | 267387 | ||
David Kilzer (:ddkilzer)
Fix warnings found by compiling with -Wmisleading-indentation.
Examples:
WebKitBuild/Release/DerivedSources/WebCore/Settings.cpp:3320:9: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation]
3320 | m_values.authorAndUserStylesEnabledInspectorOverride = authorAndUserStylesEnabledInspectorOverride;
| ^
WebKitBuild/Release/DerivedSources/WebCore/Settings.cpp:3318:5: note: previous statement is here
3318 | if (m_values.authorAndUserStylesEnabledInspectorOverride == authorAndUserStylesEnabledInspectorOverride)
| ^
Source/WebCore/platform/ios/wak/WKView.mm:232:17: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation]
232 | break;
| ^
Source/WebCore/platform/ios/wak/WKView.mm:230:13: note: previous statement is here
230 | if (widthOrHeight < 0.0f)
| ^
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/120600518>
David Kilzer (:ddkilzer)
Pull request: https://github.com/WebKit/WebKit/pull/22480
EWS
Committed 272772@main (27103d255680): <https://commits.webkit.org/272772@main>
Reviewed commits have been landed. Closing PR #22480 and removing active labels.