From 7b2079d4e22b1766eb8415df613ef3af10becded Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 1 Oct 2023 11:16:03 +0200 Subject: [PATCH] Work around a bogus compilation warning (it claimed the generated copy constructor of PendingDecode could be using fade_alpha uninitialized during push_back). --- futatabi/jpeg_frame_view.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/futatabi/jpeg_frame_view.cpp b/futatabi/jpeg_frame_view.cpp index 7da8f14..6ab1948 100644 --- a/futatabi/jpeg_frame_view.cpp +++ b/futatabi/jpeg_frame_view.cpp @@ -412,6 +412,7 @@ void JPEGFrameView::setFrame(shared_ptr frame) lock_guard lock(cache_mu); PendingDecode decode; decode.frame = std::move(frame); + decode.fade_alpha = 0.0f; pending_decodes.push_back(decode); any_pending_decodes.notify_all(); } -- 2.39.2