X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6aaee6afdcde7c9e677f642303d4988a66cb9dc9..fd5907ffd9b0785bb6eb6f2546101623b23827c5:/tests/thread/queue.cpp diff --git a/tests/thread/queue.cpp b/tests/thread/queue.cpp index a439e8ccde..16a4dc3f14 100644 --- a/tests/thread/queue.cpp +++ b/tests/thread/queue.cpp @@ -3,7 +3,7 @@ // Purpose: Unit test for wxMessageQueue // Author: Evgeniy Tarassov // Created: 31/10/2007 -// RCS-ID: $Id:$ +// RCS-ID: $Id$ // Copyright: (c) 2007 Evgeniy Tarassov // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -34,15 +34,15 @@ class QueueTestCase : public CppUnit::TestCase public: QueueTestCase() { } -private: - typedef wxMessageQueue Queue; - enum WaitTestType { WaitWithTimeout = 0, WaitInfinitlyLong }; +private: + typedef wxMessageQueue Queue; + // This class represents a thread that waits (following WaitTestType type) // for exactly maxMsgCount messages from its message queue and if another // MyThread is specified, then every message received is posted @@ -174,7 +174,7 @@ void *QueueTestCase::MyThread::Entry() while ( messagesReceived < m_maxMsgCount ) { wxMessageQueueError result; - int msg; + int msg = -1; // just to suppress "possibly uninitialized" warnings if ( m_type == WaitWithTimeout ) result = m_queue.ReceiveTimeout(1000, msg);