Ver código fonte

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

ambrop7 13 anos atrás
pai
commit
fc5d7678df
1 arquivos alterados com 2 adições e 0 exclusões
  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)
 {