Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
6c0146fd
Commit
6c0146fd
authored
Sep 07, 2017
by
Herbert Thielen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use GTEST_ATTRIBUTE_UNUSED_ instead of dummy function
parent
bc60b5a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
gtest_unittest.cc
googletest/test/gtest_unittest.cc
+1
-7
No files found.
googletest/test/gtest_unittest.cc
View file @
6c0146fd
...
...
@@ -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*.
...
...
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