LibJS+LibWeb: Mark a few variables as IGNORE_USE_IN_ESCAPING_LAMBDA

This is a bit noisy, but it'll be better once we upgrade to C++23.
This commit is contained in:
Matthew Olsson 2024-04-07 16:32:33 -07:00 committed by Andreas Kling
parent ff00d21d58
commit d47f656a3a
Notes: sideshowbarker 2024-07-17 02:23:25 +09:00
4 changed files with 14 additions and 13 deletions

View file

@ -821,7 +821,7 @@ WebIDL::ExceptionOr<void> HTMLMediaElement::select_resource()
// -> If mode is attribute
case SelectMode::Attribute: {
auto failed_with_attribute = [this](auto error_message) {
bool ran_media_element_task = false;
IGNORE_USE_IN_ESCAPING_LAMBDA bool ran_media_element_task = false;
// 6. Failed with attribute: Reaching this step indicates that the media resource failed to load or that the given URL could not be parsed. Take
// pending play promises and queue a media element task given the media element to run the dedicated media source failure steps with the result.