Index: base/bind_unittest.cc |
diff --git a/base/bind_unittest.cc b/base/bind_unittest.cc |
index c6b53d55f031e557e3bf7886a7512a09d816a43d..6e01f7f3fdb0241dbed1286d8780dc335541d37b 100644 |
--- a/base/bind_unittest.cc |
+++ b/base/bind_unittest.cc |
@@ -1241,7 +1241,7 @@ TEST_F(BindTest, CapturelessLambda) { |
EXPECT_TRUE(internal::IsConvertibleToRunType<decltype(f)>::value); |
int i = 0; |
- auto g = [i]() {}; |
+ auto g = [i]() { (void)i; }; |
EXPECT_FALSE(internal::IsConvertibleToRunType<decltype(g)>::value); |
auto h = [](int, double) { return 'k'; }; |