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
1c22797c
Commit
1c22797c
authored
Feb 13, 2019
by
Enji Cooper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix clang `-Wunused-parameter` warnings
Comment out unused method parameters in their relevant definitions. Signed-off-by:
Enji Cooper
<
yaneurabeya@gmail.com
>
parent
5388473a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
gmock-generated-matchers_test.cc
googlemock/test/gmock-generated-matchers_test.cc
+1
-1
gmock-matchers_test.cc
googlemock/test/gmock-matchers_test.cc
+1
-1
No files found.
googlemock/test/gmock-generated-matchers_test.cc
View file @
1c22797c
...
...
@@ -1262,7 +1262,7 @@ namespace adl_test {
MATCHER
(
M
,
""
)
{
return
true
;
}
template
<
typename
T1
,
typename
T2
>
bool
AllOf
(
const
T1
&
t1
,
const
T2
&
t2
)
{
return
true
;
}
bool
AllOf
(
const
T1
&
/*t1*/
,
const
T2
&
/*t2*/
)
{
return
true
;
}
TEST
(
AllOfTest
,
DoesNotCallAllOfUnqualified
)
{
EXPECT_THAT
(
42
,
testing
::
AllOf
(
...
...
googlemock/test/gmock-matchers_test.cc
View file @
1c22797c
...
...
@@ -6943,7 +6943,7 @@ TEST(ArgsTest, ExplainsMatchResultWithoutInnerExplanation) {
// For testing Args<>'s explanation.
class
LessThanMatcher
:
public
MatcherInterface
<
std
::
tuple
<
char
,
int
>
>
{
public
:
void
DescribeTo
(
::
std
::
ostream
*
os
)
const
override
{}
void
DescribeTo
(
::
std
::
ostream
*
/*os*/
)
const
override
{}
bool
MatchAndExplain
(
std
::
tuple
<
char
,
int
>
value
,
MatchResultListener
*
listener
)
const
override
{
...
...
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