瀏覽代碼

Warning removal.

Adam Ierymenko 7 年之前
父節點
當前提交
f13886d343
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      node/Trace.cpp

+ 2 - 0
node/Trace.cpp

@@ -160,7 +160,9 @@ void Trace::peerRedirected(void *const tPtr,const uint64_t networkId,Peer &peer,
 
 void Trace::outgoingNetworkFrameDropped(void *const tPtr,const SharedPtr<Network> &network,const MAC &sourceMac,const MAC &destMac,const unsigned int etherType,const unsigned int vlanId,const unsigned int frameLen,const char *reason)
 {
+#ifdef ZT_TRACE
 	char tmp[128],tmp2[128];
+#endif
 	if (!network) return; // sanity check
 
 	ZT_LOCAL_TRACE(tPtr,RR,"%.16llx DROP frame %s -> %s etherType %.4x size %u (%s)",network->id(),sourceMac.toString(tmp),destMac.toString(tmp2),etherType,frameLen,(reason) ? reason : "unknown reason");