Commit 1c22797c authored by Enji Cooper's avatar Enji Cooper
Browse files

Fix clang `-Wunused-parameter` warnings



Comment out unused method parameters in their relevant definitions.
Signed-off-by: default avatarEnji Cooper <yaneurabeya@gmail.com>
parent 5388473a
...@@ -1262,7 +1262,7 @@ namespace adl_test { ...@@ -1262,7 +1262,7 @@ namespace adl_test {
MATCHER(M, "") { return true; } MATCHER(M, "") { return true; }
template <typename T1, typename T2> 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) { TEST(AllOfTest, DoesNotCallAllOfUnqualified) {
EXPECT_THAT(42, testing::AllOf( EXPECT_THAT(42, testing::AllOf(
......
...@@ -6943,7 +6943,7 @@ TEST(ArgsTest, ExplainsMatchResultWithoutInnerExplanation) { ...@@ -6943,7 +6943,7 @@ TEST(ArgsTest, ExplainsMatchResultWithoutInnerExplanation) {
// For testing Args<>'s explanation. // For testing Args<>'s explanation.
class LessThanMatcher : public MatcherInterface<std::tuple<char, int> > { class LessThanMatcher : public MatcherInterface<std::tuple<char, int> > {
public: public:
void DescribeTo(::std::ostream* os) const override {} void DescribeTo(::std::ostream* /*os*/) const override {}
bool MatchAndExplain(std::tuple<char, int> value, bool MatchAndExplain(std::tuple<char, int> value,
MatchResultListener* listener) const override { MatchResultListener* listener) const override {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment