diff options
author | zhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925> | 2009-12-29 19:45:33 +0000 |
---|---|---|
committer | zhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925> | 2009-12-29 19:45:33 +0000 |
commit | 1d6df4be08e71c8a9d600799cc17bfd7d62838fc (patch) | |
tree | 9724b22e0f9f6246598921fb5ce4585199d4fde4 /samples/sample10_unittest.cc | |
parent | 4d004650c9aa48fcad827d0096b773e3b59727ef (diff) | |
download | googletest-1d6df4be08e71c8a9d600799cc17bfd7d62838fc.tar.gz googletest-1d6df4be08e71c8a9d600799cc17bfd7d62838fc.tar.bz2 googletest-1d6df4be08e71c8a9d600799cc17bfd7d62838fc.zip |
Adds an experimental CMake build script; makes the samples compile without warnings on Windows.
Diffstat (limited to 'samples/sample10_unittest.cc')
-rw-r--r-- | samples/sample10_unittest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/samples/sample10_unittest.cc b/samples/sample10_unittest.cc index 703ec6ee..3ad6fd65 100644 --- a/samples/sample10_unittest.cc +++ b/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 |