use GTEST_ATTRIBUTE_UNUSED_ instead of dummy function
This commit is contained in:
parent
bc60b5a827
commit
6c0146fd00
@ -2096,7 +2096,7 @@ class UnitTestRecordPropertyTestEnvironment : public Environment {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// This will test property recording outside of any test or test case.
|
// 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);
|
AddGlobalTestEnvironment(new UnitTestRecordPropertyTestEnvironment);
|
||||||
|
|
||||||
// This group of tests is for predicate assertions (ASSERT_PRED*, etc)
|
// This group of tests is for predicate assertions (ASSERT_PRED*, etc)
|
||||||
@ -4188,12 +4188,6 @@ TEST(AssertionSyntaxTest, WorksWithConst) {
|
|||||||
|
|
||||||
} // namespace
|
} // 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 {
|
namespace testing {
|
||||||
|
|
||||||
// Tests that Google Test tracks SUCCEED*.
|
// Tests that Google Test tracks SUCCEED*.
|
||||||
|
Loading…
Reference in New Issue
Block a user