Browse Source

Merge pull request #741 from nico/unused

Fix Wunused-private-field warning in debug builds.
pull/715/merge
Shaopeng Jia 11 years ago
parent
commit
381d4dab16
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      cpp/src/phonenumbers/base/synchronization/lock.h

+ 3
- 1
cpp/src/phonenumbers/base/synchronization/lock.h View File

@ -44,14 +44,16 @@ namespace phonenumbers {
class Lock { class Lock {
public: public:
Lock() : thread_checker_() {}
Lock() {}
void Acquire() const { void Acquire() const {
DCHECK(thread_checker_.CalledOnValidThread()); DCHECK(thread_checker_.CalledOnValidThread());
IGNORE_UNUSED(thread_checker_);
} }
void Release() const { void Release() const {
DCHECK(thread_checker_.CalledOnValidThread()); DCHECK(thread_checker_.CalledOnValidThread());
IGNORE_UNUSED(thread_checker_);
} }
private: private:


Loading…
Cancel
Save