diff options
author | kosak@google.com <kosak@google.com@861a406c-534a-0410-8894-cb66d6ee9925> | 2015-07-14 20:29:34 +0000 |
---|---|---|
committer | kosak@google.com <kosak@google.com@861a406c-534a-0410-8894-cb66d6ee9925> | 2015-07-14 20:29:34 +0000 |
commit | c0a1ccae495eeefb4e57ad8a2221779bd542982e (patch) | |
tree | 27a2ec2a0f48bebd9a2691902fcfcd92e505f951 | |
parent | e3793aadae9e7f73b06d8d6cff3405776eed5223 (diff) | |
download | googletest-c0a1ccae495eeefb4e57ad8a2221779bd542982e.tar.gz |
Add GTEST_ATTRIBUTE_UNUSED_ to the dummy variable generated in INSTANTIATE_TEST_CASE_P.
git-svn-id: http://googletest.googlecode.com/svn/trunk@716 861a406c-534a-0410-8894-cb66d6ee9925
-rw-r--r-- | include/gtest/gtest-param-test.h | 2 | ||||
-rw-r--r-- | include/gtest/gtest-param-test.h.pump | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/gtest/gtest-param-test.h b/include/gtest/gtest-param-test.h index adcc49b..0b61629 100644 --- a/include/gtest/gtest-param-test.h +++ b/include/gtest/gtest-param-test.h @@ -1394,7 +1394,7 @@ internal::CartesianProductHolder10<Generator1, Generator2, Generator3, GTEST_TEST_CLASS_NAME_(test_case_name, test_name)>()); \ return 0; \ } \ - static int gtest_registering_dummy_; \ + static int gtest_registering_dummy_ GTEST_ATTRIBUTE_UNUSED_; \ GTEST_DISALLOW_COPY_AND_ASSIGN_(\ GTEST_TEST_CLASS_NAME_(test_case_name, test_name)); \ }; \ diff --git a/include/gtest/gtest-param-test.h.pump b/include/gtest/gtest-param-test.h.pump index 55ddd2d..8033f49 100644 --- a/include/gtest/gtest-param-test.h.pump +++ b/include/gtest/gtest-param-test.h.pump @@ -460,7 +460,7 @@ internal::CartesianProductHolder$i<$for j, [[Generator$j]]> Combine( GTEST_TEST_CLASS_NAME_(test_case_name, test_name)>()); \ return 0; \ } \ - static int gtest_registering_dummy_; \ + static int gtest_registering_dummy_ GTEST_ATTRIBUTE_UNUSED_; \ GTEST_DISALLOW_COPY_AND_ASSIGN_(\ GTEST_TEST_CLASS_NAME_(test_case_name, test_name)); \ }; \ |