[Webkit-unassigned] [Bug 239290] Misc compiler warnings, April 2022 edition
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Apr 19 10:15:30 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=239290
--- Comment #9 from Michael Catanzaro <mcatanzaro at gnome.org> ---
Did some searching... it seems C++23 has a solution for this, std::unreachable():
https://en.cppreference.com/w/cpp/utility/unreachable
In the meantime, we could add a WTF_UNREACHABLE() macro fairly easily, which could replace most use of RELEASE_ASSERT_NOT_REACHED() after switch statements that are intended to always return. Hopefully that would allow us to avoid the performance hit in these locations? Then we wouldn't have to worry about this happening again. (I know it takes you ages to track it down performance regressions....)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220419/696eede0/attachment.htm>
More information about the webkit-unassigned
mailing list