Procházet zdrojové kódy

prevent: warning: unused variable 'gotViaProc' (#1797)

Brenton Bostick před 2 roky
rodič
revize
3ddaa60de9
1 změnil soubory, kde provedl 7 přidání a 0 odebrání
  1. 7 0
      osdep/Binder.hpp

+ 7 - 0
osdep/Binder.hpp

@@ -313,6 +313,13 @@ class Binder {
 #else
 			const bool gotViaProc = false;
 #endif
+
+			//
+			// prevent:
+			// warning: unused variable 'gotViaProc'
+			//
+			(void)gotViaProc;
+
 #if ! (defined(ZT_SDK) || defined(__ANDROID__))	  // getifaddrs() freeifaddrs() not available on Android
 			if (! gotViaProc) {
 				struct ifaddrs* ifatbl = (struct ifaddrs*)0;