瀏覽代碼

DebugObject: don't declare extern global variables when they don't exist

ambrop7 13 年之前
父節點
當前提交
fc5d7678df
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      base/DebugObject.h

+ 2 - 0
base/DebugObject.h

@@ -81,10 +81,12 @@ static void DebugObject_Access (const DebugObject *obj);
  */
 static void DebugObjectGlobal_Finish (void);
 
+#ifndef NDEBUG
 extern DebugCounter debugobject_counter;
 #ifdef BADVPN_THREADWORK_USE_PTHREAD
 extern pthread_mutex_t debugobject_mutex;
 #endif
+#endif
 
 void DebugObject_Init (DebugObject *obj)
 {