Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c8512110 authored by Ryan Prichard's avatar Ryan Prichard
Browse files

RESTRICT AUTOMERGE: Explicitly ignore the result of std::async

The newer libc++ marks std::async with [[nodiscard]] in C++20 mode.

Bug: b/175635923
Test: treehugger
Change-Id: Ia222778697ab4241f25e002073b3514c7e106007
parent 39a9427c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6755,7 +6755,7 @@ ftl::SharedFuture<FenceResult> SurfaceFlinger::captureScreenCommon(
        if (captureListener) {
            // TODO: The future returned by std::async blocks the main thread. Return a chain of
            // futures to the Binder thread instead.
            std::async([=]() mutable {
            (void)std::async([=]() mutable {
                ATRACE_NAME("captureListener is nonnull!");
                auto fenceResult = renderFuture.get();
                // TODO(b/232535621): Change ScreenCaptureResults to store a FenceResult.