diff --git a/simgear/emesary/test_emesary.cxx b/simgear/emesary/test_emesary.cxx index 852fa55b..55acd622 100644 --- a/simgear/emesary/test_emesary.cxx +++ b/simgear/emesary/test_emesary.cxx @@ -32,20 +32,23 @@ class TestThreadRecipient : public simgear::Emesary::IReceiver public: TestThreadRecipient() : receiveCount(0) { - } std::atomic receiveCount; + virtual simgear::Emesary::ReceiptStatus Receive(simgear::Emesary::INotification &n) { if (n.GetType() == (const char*)this) { - TestThreadNotification *tn = dynamic_cast(&n); + // Unused: TestThreadNotification *tn = dynamic_cast(&n); receiveCount++; + TestThreadNotification onwardNotification("AL"); simgear::Emesary::GlobalTransmitter::instance()->NotifyAll(onwardNotification); + return simgear::Emesary::ReceiptStatusOK; } + return simgear::Emesary::ReceiptStatusOK; } };