Makes gmock compile with gcc -Wall -Wextra -Wno-unused-parameter.
diff --git a/include/gmock/gmock-actions.h b/include/gmock/gmock-actions.h
index a228eea..a283ed7 100644
--- a/include/gmock/gmock-actions.h
+++ b/include/gmock/gmock-actions.h
@@ -597,7 +597,7 @@
AssignAction(T1* ptr, T2 value) : ptr_(ptr), value_(value) {}
template <typename Result, typename ArgumentTuple>
- void Perform(const ArgumentTuple &args) const {
+ void Perform(const ArgumentTuple& /* args */) const {
*ptr_ = value_;
}
private:
@@ -616,7 +616,7 @@
: errno_(errno_value),
result_(result) {}
template <typename Result, typename ArgumentTuple>
- Result Perform(const ArgumentTuple &args) const {
+ Result Perform(const ArgumentTuple& /* args */) const {
errno = errno_;
return result_;
}