소스 검색

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)
 {