From: Steinar H. Gunderson Date: Sun, 1 Oct 2023 09:16:03 +0000 (+0200) Subject: Work around a bogus compilation warning (it claimed the generated copy constructor... X-Git-Tag: 2.3.0~7 X-Git-Url: https://git.sesse.net/?p=nageru;a=commitdiff_plain;h=7b2079d4e22b1766eb8415df613ef3af10becded Work around a bogus compilation warning (it claimed the generated copy constructor of PendingDecode could be using fade_alpha uninitialized during push_back). --- 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(); }