aboutsummaryrefslogtreecommitdiffstats
path: root/gtest/samples/sample10_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtest/samples/sample10_unittest.cc')
-rw-r--r--gtest/samples/sample10_unittest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtest/samples/sample10_unittest.cc b/gtest/samples/sample10_unittest.cc
index 703ec6e..3ad6fd6 100644
--- a/gtest/samples/sample10_unittest.cc
+++ b/gtest/samples/sample10_unittest.cc
@@ -58,7 +58,7 @@ class Water {
return malloc(allocation_size);
}
- void operator delete(void* block, size_t allocation_size) {
+ void operator delete(void* block, size_t /* allocation_size */) {
allocated_--;
free(block);
}
@@ -78,12 +78,12 @@ int Water::allocated_ = 0;
class LeakChecker : public EmptyTestEventListener {
private:
// Called before a test starts.
- virtual void OnTestStart(const TestInfo& test_info) {
+ virtual void OnTestStart(const TestInfo& /* test_info */) {
initially_allocated_ = Water::allocated();
}
// Called after a test ends.
- virtual void OnTestEnd(const TestInfo& test_info) {
+ virtual void OnTestEnd(const TestInfo& /* test_info */) {
int difference = Water::allocated() - initially_allocated_;
// You can generate a failure in any event handler except