Fix unused lambda captures in base/.
Clang just got a new warning to warn about unused lambda captures,
and that requires us to clean all places with this issue
across all the Chromium code base. This CL fixes all such
cases in base/.
BUG=681912
Review-Url: https://codereview.chromium.org/2640073002
Cr-Commit-Position: refs/heads/master@{#444436}
diff --git a/base/bind_unittest.cc b/base/bind_unittest.cc
index c6b53d5..6e01f7f 100644
--- a/base/bind_unittest.cc
+++ b/base/bind_unittest.cc
@@ -1241,7 +1241,7 @@
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'; };