aboutsummaryrefslogtreecommitdiffstats
path: root/googletest
diff options
context:
space:
mode:
authorHerbert Thielen <thielen@hs-worms.de>2017-09-04 13:23:08 +0200
committerHerbert Thielen <thielen@hs-worms.de>2017-09-04 17:18:16 +0200
commit8abacca52eeb9e9502b5cc2c3b4733d8adf3c42b (patch)
treef992c2ab163d2922709a62d97c238e3181e64247 /googletest
parent520ad96b78179fde7110ea29f7c22a6a9b32ed09 (diff)
downloadgoogletest-8abacca52eeb9e9502b5cc2c3b4733d8adf3c42b.tar.gz
googletest-8abacca52eeb9e9502b5cc2c3b4733d8adf3c42b.tar.bz2
googletest-8abacca52eeb9e9502b5cc2c3b4733d8adf3c42b.zip
avoid -Wshadow warning on GCC
When using INSTANTIATE_TEST_CASE_P with a lambda function which uses 'info' as parameter name, GCC complains that this would shadow parameter 'info' used in the macro's VA_ARGS call.
Diffstat (limited to 'googletest')
-rw-r--r--googletest/test/gtest-param-test_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/googletest/test/gtest-param-test_test.cc b/googletest/test/gtest-param-test_test.cc
index 857f6c5e..d1b0644f 100644
--- a/googletest/test/gtest-param-test_test.cc
+++ b/googletest/test/gtest-param-test_test.cc
@@ -857,8 +857,8 @@ TEST_P(CustomLambdaNamingTest, CustomTestNames) {}
INSTANTIATE_TEST_CASE_P(CustomParamNameLambda,
CustomLambdaNamingTest,
Values(std::string("LambdaName")),
- [](const ::testing::TestParamInfo<std::string>& info) {
- return info.param;
+ [](const ::testing::TestParamInfo<std::string>& tpinfo) {
+ return tpinfo.param;
});
#endif // GTEST_LANG_CXX11