X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5098c258b2b70241cb68e9aa219ff60f85e4ca84..656634564bbffea405dd99776990802e744c0cab:/tests/thread/queue.cpp?ds=sidebyside diff --git a/tests/thread/queue.cpp b/tests/thread/queue.cpp index a70108db60..87a00898a4 100644 --- a/tests/thread/queue.cpp +++ b/tests/thread/queue.cpp @@ -87,7 +87,7 @@ private: // register in the unnamed registry so that these tests are run by default CPPUNIT_TEST_SUITE_REGISTRATION( QueueTestCase ); -// also include in it's own registry so that these tests can be run alone +// also include in its own registry so that these tests can be run alone CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( QueueTestCase, "QueueTestCase" ); // this function creates the given number of threads and posts msgCount @@ -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);