Title: [280697] trunk/Source/WebCore
- Revision
- 280697
- Author
- [email protected]
- Date
- 2021-08-05 09:44:10 -0700 (Thu, 05 Aug 2021)
Log Message
Suppress more -Wreturn-type warnings
https://bugs.webkit.org/show_bug.cgi?id=228831
Unreviewed.
Patch by Michael Catanzaro <[email protected]> on 2021-08-05
* platform/KeyboardScrollingAnimator.cpp:
(WebCore::KeyboardScrollingAnimator::keyboardScrollForKeyboardEvent const):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (280696 => 280697)
--- trunk/Source/WebCore/ChangeLog 2021-08-05 16:27:00 UTC (rev 280696)
+++ trunk/Source/WebCore/ChangeLog 2021-08-05 16:44:10 UTC (rev 280697)
@@ -1,5 +1,15 @@
2021-08-05 Michael Catanzaro <[email protected]>
+ Suppress more -Wreturn-type warnings
+ https://bugs.webkit.org/show_bug.cgi?id=228831
+
+ Unreviewed.
+
+ * platform/KeyboardScrollingAnimator.cpp:
+ (WebCore::KeyboardScrollingAnimator::keyboardScrollForKeyboardEvent const):
+
+2021-08-05 Michael Catanzaro <[email protected]>
+
GCC 11 builds should use -Wno-array-bounds, -Wno-nonnull
https://bugs.webkit.org/show_bug.cgi?id=228601
Modified: trunk/Source/WebCore/platform/KeyboardScrollingAnimator.cpp (280696 => 280697)
--- trunk/Source/WebCore/platform/KeyboardScrollingAnimator.cpp 2021-08-05 16:27:00 UTC (rev 280696)
+++ trunk/Source/WebCore/platform/KeyboardScrollingAnimator.cpp 2021-08-05 16:44:10 UTC (rev 280697)
@@ -191,6 +191,7 @@
case Key::Space:
return ScrollGranularity::ScrollByPage;
};
+ RELEASE_ASSERT_NOT_REACHED();
}();
auto direction = [&] {
@@ -206,6 +207,7 @@
case Key::Space:
return event.shiftKey() ? ScrollDirection::ScrollUp : ScrollDirection::ScrollDown;
}
+ RELEASE_ASSERT_NOT_REACHED();
}();
float distance = scrollDistance(direction, granularity);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes