Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
55fd999a
Commit
55fd999a
authored
Aug 30, 2017
by
Herbert Thielen
Browse files
avoid warning about unused variable
parent
8abacca5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
googletest/test/gtest_unittest.cc
googletest/test/gtest_unittest.cc
+7
-1
No files found.
googletest/test/gtest_unittest.cc
View file @
55fd999a
...
@@ -2096,7 +2096,7 @@ class UnitTestRecordPropertyTestEnvironment : public Environment {
...
@@ -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.
static
Environment
*
record_property_env
=
Environment
*
record_property_env
=
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,6 +4188,12 @@ TEST(AssertionSyntaxTest, WorksWithConst) {
...
@@ -4188,6 +4188,12 @@ 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*.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment