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
ea43be9d
Commit
ea43be9d
authored
Feb 13, 2019
by
Gennadiy Civil
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2119 from ngie-eign:clang-wunused-private-field
PiperOrigin-RevId: 233762751
parents
e5e846da
ed2fe122
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
gmock-matchers_test.cc
googlemock/test/gmock-matchers_test.cc
+2
-0
googletest-param-test-test.cc
googletest/test/googletest-param-test-test.cc
+2
-0
No files found.
googlemock/test/gmock-matchers_test.cc
View file @
ea43be9d
...
...
@@ -982,6 +982,8 @@ class Unprintable {
Unprintable
()
:
c_
(
'a'
)
{}
bool
operator
==
(
const
Unprintable
&
/* rhs */
)
const
{
return
true
;
}
// -Wunused-private-field: dummy accessor for `c_`.
char
dummy_c
()
{
return
c_
;
}
private
:
char
c_
;
};
...
...
googletest/test/googletest-param-test-test.cc
View file @
ea43be9d
...
...
@@ -964,6 +964,8 @@ INSTANTIATE_TEST_SUITE_P(StatefulNamingFunctor, StatefulNamingTest, Range(0, 5),
class
Unstreamable
{
public
:
explicit
Unstreamable
(
int
value
)
:
value_
(
value
)
{}
// -Wunused-private-field: dummy accessor for `value_`.
const
int
&
dummy_value
()
const
{
return
value_
;
}
private
:
int
value_
;
...
...
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