Browse Source

Avoid stupid warning

bel2125 8 năm trước cách đây
mục cha
commit
8be6d2548a
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/civetweb.c

+ 2 - 0
src/civetweb.c

@@ -858,6 +858,7 @@ mg_atomic_dec(volatile int *addr)
 #endif
 
 
+#if defined(USE_SERVER_STATS)
 static int
 mg_atomic_add(volatile int *addr, int value)
 {
@@ -875,6 +876,7 @@ mg_atomic_add(volatile int *addr, int value)
 #endif
 	return ret;
 }
+#endif
 
 
 #if defined(__GNUC__)