From: Carl Hetherington Date: Wed, 13 Mar 2024 08:37:26 +0000 (+0100) Subject: Fix warning on macOS. X-Git-Tag: v2.17.13~1 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=f74349740aaa68b0e06b0da9e614f27238bc8e4e Fix warning on macOS. --- diff --git a/src/wx/dcp_timeline.cc b/src/wx/dcp_timeline.cc index 3974997eb..119d07b03 100644 --- a/src/wx/dcp_timeline.cc +++ b/src/wx/dcp_timeline.cc @@ -369,7 +369,7 @@ DCPTimeline::paint_reels(wxGraphicsContext* gc) auto const y = reel_marker_y_pos + DCPTimelineReelMarkerView::HEIGHT * 3 / 4; - auto paint_reel = [gc, y](double from, double to, int index) { + auto paint_reel = [gc](double from, double to, int index) { auto path = gc->CreatePath(); path.MoveToPoint(from, y); path.AddLineToPoint(to, y);