mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-27 06:20:11 +00:00
g++ compiler warning fix
This commit is contained in:
parent
7788a3d45d
commit
cb6fd3afb3
@ -78,9 +78,10 @@ TestEthernetTap::TestEthernetTap(
|
||||
|
||||
TestEthernetTap::~TestEthernetTap()
|
||||
{
|
||||
static const TestFrame zf;
|
||||
{
|
||||
Mutex::Lock _l(_pq_m);
|
||||
_pq.push(TestFrame()); // 0 length frame = exit
|
||||
_pq.push(zf); // 0 length frame = exit
|
||||
}
|
||||
_pq_c.signal();
|
||||
Thread::join(_thread);
|
||||
|
@ -63,7 +63,7 @@ class TestEthernetTap : public EthernetTap
|
||||
private:
|
||||
struct TestFrame
|
||||
{
|
||||
TestFrame() : etherType(0),len(0) {}
|
||||
TestFrame() : from(),to(),etherType(0),len(0) {}
|
||||
TestFrame(const MAC &f,const MAC &t,const void *d,unsigned int et,unsigned int l) :
|
||||
from(f),
|
||||
to(t),
|
||||
|
Loading…
x
Reference in New Issue
Block a user