From cb6fd3afb3cb894f506989e3fe013d1adff54f5a Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 7 Oct 2014 13:18:08 -0700 Subject: g++ compiler warning fix --- testnet/TestEthernetTap.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'testnet/TestEthernetTap.cpp') diff --git a/testnet/TestEthernetTap.cpp b/testnet/TestEthernetTap.cpp index f3273d00..35c7511b 100644 --- a/testnet/TestEthernetTap.cpp +++ b/testnet/TestEthernetTap.cpp @@ -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); -- cgit v1.2.3