From 7b6c75ae418c46acf838053e538940de4312800f Mon Sep 17 00:00:00 2001 From: Damian Wrobel Date: Fri, 10 Jan 2020 17:47:29 +0100 Subject: [PATCH] Fix error: lambda capture 'iphone_xs_times' is not required Fixes: ../../flutter/shell/common/input_events_unittests.cc:283:50: error: lambda capture 'iphone_xs_times' is not required to be captured for this use [-Werror,-Wunused-lambda-capture] Generator iphone_xs_generator = [frame_time, iphone_xs_times, ~~^~~~~~~~~~~~~~~ Signed-off-by: Damian Wrobel --- shell/common/input_events_unittests.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/common/input_events_unittests.cc b/shell/common/input_events_unittests.cc index 3e08663fff90e..68824602915c0 100644 --- a/shell/common/input_events_unittests.cc +++ b/shell/common/input_events_unittests.cc @@ -280,7 +280,7 @@ TEST_F(ShellTest, HandlesActualIphoneXsInputEvents) { // TestSimulatedInputEvents. UnitlessTime base_latency = static_cast(base_latency_f * frame_time); - Generator iphone_xs_generator = [frame_time, iphone_xs_times, + Generator iphone_xs_generator = [frame_time, base_latency](int i) { return base_latency + static_cast(iphone_xs_times[i] * frame_time);