浏览代码

Remove unused variable on non-windows

Adam Ierymenko 4 年之前
父节点
当前提交
317263b31c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      service/OneService.cpp

+ 1 - 1
service/OneService.cpp

@@ -1933,9 +1933,9 @@ public:
 
 		if (syncRoutes) {
 			// Get tap device name (use LUID in hex on Windows) and IP addresses.
-			char tapdevbuf[64];
 			std::string tapdev;
 #if defined(__WINDOWS__) && !defined(ZT_SDK)
+			char tapdevbuf[64];
 			OSUtils::ztsnprintf(tapdevbuf,sizeof(tapdevbuf),"%.16llx",(unsigned long long)((WindowsEthernetTap *)(n.tap.get()))->luid().Value);
 			tapdev = tapdevbuf;
 #else