From 91c041e57818e01b96c40aae282b4ab28ee23332 Mon Sep 17 00:00:00 2001 From: Praveen Rao Date: Tue, 13 Oct 2015 14:28:11 -0700 Subject: [PATCH] move debug variable under ifndef --- port/win/port_win.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/port/win/port_win.h b/port/win/port_win.h index edee22e7a..8f5d7e1e0 100644 --- a/port/win/port_win.h +++ b/port/win/port_win.h @@ -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();