Explorar o código

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

ambrop7 %!s(int64=13) %!d(string=hai) anos
pai
achega
fc5d7678df
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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)
 {