move debug variable under ifndef

This commit is contained in:
Praveen Rao 2015-10-13 14:28:11 -07:00
parent a1d37602a0
commit 91c041e578
1 changed files with 5 additions and 2 deletions

View File

@ -114,8 +114,11 @@ class CondVar;
class Mutex {
public:
/* implicit */ Mutex(bool adaptive = false) : locked_(false) {
}
/* implicit */ Mutex(bool adaptive = false)
#ifndef NDEBUG
: locked_(false)
#endif
{ }
~Mutex();