Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
ea43be9d
Commit
ea43be9d
authored
Feb 13, 2019
by
Gennadiy Civil
Browse files
Merge pull request #2119 from ngie-eign:clang-wunused-private-field
PiperOrigin-RevId: 233762751
parents
e5e846da
ed2fe122
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
googlemock/test/gmock-matchers_test.cc
googlemock/test/gmock-matchers_test.cc
+2
-0
googletest/test/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 {
...
@@ -982,6 +982,8 @@ class Unprintable {
Unprintable
()
:
c_
(
'a'
)
{}
Unprintable
()
:
c_
(
'a'
)
{}
bool
operator
==
(
const
Unprintable
&
/* rhs */
)
const
{
return
true
;
}
bool
operator
==
(
const
Unprintable
&
/* rhs */
)
const
{
return
true
;
}
// -Wunused-private-field: dummy accessor for `c_`.
char
dummy_c
()
{
return
c_
;
}
private:
private:
char
c_
;
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),
...
@@ -964,6 +964,8 @@ INSTANTIATE_TEST_SUITE_P(StatefulNamingFunctor, StatefulNamingTest, Range(0, 5),
class
Unstreamable
{
class
Unstreamable
{
public:
public:
explicit
Unstreamable
(
int
value
)
:
value_
(
value
)
{}
explicit
Unstreamable
(
int
value
)
:
value_
(
value
)
{}
// -Wunused-private-field: dummy accessor for `value_`.
const
int
&
dummy_value
()
const
{
return
value_
;
}
private:
private:
int
value_
;
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