aboutsummaryrefslogtreecommitdiffstats
path: root/include/gmock/gmock-actions.h
diff options
context:
space:
mode:
authorzhanyong.wan <zhanyong.wan@8415998a-534a-0410-bf83-d39667b30386>2009-03-26 19:06:45 +0000
committerzhanyong.wan <zhanyong.wan@8415998a-534a-0410-bf83-d39667b30386>2009-03-26 19:06:45 +0000
commit3fbd2dd020819fcfd7cef2aa6a17fad73c41a0ee (patch)
treebea98a1704d173263e559d949c63289bec30d9f9 /include/gmock/gmock-actions.h
parent68be111b4c82d3422ba2b83a8651033300ad4900 (diff)
downloadgoogletest-3fbd2dd020819fcfd7cef2aa6a17fad73c41a0ee.tar.gz
googletest-3fbd2dd020819fcfd7cef2aa6a17fad73c41a0ee.tar.bz2
googletest-3fbd2dd020819fcfd7cef2aa6a17fad73c41a0ee.zip
Makes gmock compile with gcc -Wall -Wextra -Wno-unused-parameter.
Diffstat (limited to 'include/gmock/gmock-actions.h')
-rw-r--r--include/gmock/gmock-actions.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/gmock/gmock-actions.h b/include/gmock/gmock-actions.h
index a228eea6..a283ed73 100644
--- a/include/gmock/gmock-actions.h
+++ b/include/gmock/gmock-actions.h
@@ -597,7 +597,7 @@ class AssignAction {
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 @@ class SetErrnoAndReturnAction {
: 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_;
}