Use USE(), (void) is void with GCC.

Bug: chromium:1352175
Change-Id: Ic254a5d0ca2bb6d8179dfe5ba74f1d0753d456ec
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4022027
Commit-Queue: Adam Klein <adamk@chromium.org>
Auto-Submit: Andrey Kosyakov <caseq@chromium.org>
Reviewed-by: Adam Klein <adamk@chromium.org>
Cr-Commit-Position: refs/heads/main@{#84193}
This commit is contained in:
Andrey Kosyakov 2022-11-10 13:22:10 -08:00 committed by V8 LUCI CQ
parent aad28b55da
commit 7d2b1f5368

View File

@ -58,8 +58,8 @@ void RunSimpleAsyncTask(TaskRunner* task_runner,
v8::MicrotasksScope microtasks_scope(context,
v8::MicrotasksScope::kRunMicrotasks);
v8::Context::Scope context_scope(context);
(void)client_callback_.Get(data->isolate())
->Call(context, context->Global(), 0, nullptr);
USE(client_callback_.Get(data->isolate())
->Call(context, context->Global(), 0, nullptr));
}
v8::Global<v8::Context> context_;
v8::Global<v8::Function> client_callback_;