diff options
author | Herbert Thielen <thielen@hs-worms.de> | 2017-09-07 15:33:19 (GMT) |
---|---|---|
committer | Herbert Thielen <thielen@hs-worms.de> | 2017-09-07 15:33:19 (GMT) |
commit | 6c0146fd0075aae0beb394c19285a8869745cc2c (patch) | |
tree | 9a68c90af5bbc8e87b1f5a652e6b01395aa26da5 /googletest/test/gtest_unittest.cc | |
parent | bc60b5a82704c611abab34b3eeb496edf8521015 (diff) | |
download | googletest-6c0146fd0075aae0beb394c19285a8869745cc2c.zip googletest-6c0146fd0075aae0beb394c19285a8869745cc2c.tar.gz googletest-6c0146fd0075aae0beb394c19285a8869745cc2c.tar.bz2 |
use GTEST_ATTRIBUTE_UNUSED_ instead of dummy functionrefs/pull/1243/head
Diffstat (limited to 'googletest/test/gtest_unittest.cc')
-rw-r--r-- | googletest/test/gtest_unittest.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/googletest/test/gtest_unittest.cc b/googletest/test/gtest_unittest.cc index 78f3ee2..745c950 100644 --- a/googletest/test/gtest_unittest.cc +++ b/googletest/test/gtest_unittest.cc @@ -2096,7 +2096,7 @@ class UnitTestRecordPropertyTestEnvironment : public Environment { }; // This will test property recording outside of any test or test case. -Environment* record_property_env = +Environment* record_property_env GTEST_ATTRIBUTE_UNUSED_ = AddGlobalTestEnvironment(new UnitTestRecordPropertyTestEnvironment); // This group of tests is for predicate assertions (ASSERT_PRED*, etc) @@ -4188,12 +4188,6 @@ TEST(AssertionSyntaxTest, WorksWithConst) { } // namespace -// we don't use the variable further, just avoid compiler warning -// by defining a function which uses it -void dummy_use_of_record_property_env() { - (void) record_property_env; -} - namespace testing { // Tests that Google Test tracks SUCCEED*. |