]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/thread/queue.cpp
Add wx/meta/removeref.h header defining wxRemoveRef<> helper.
[wxWidgets.git] / tests / thread / queue.cpp
index a70108db6094b51ee9b051d2bb7662eb1e53c6aa..87a00898a46a78e6cf21e2450c80cbedb0c01cc0 100644 (file)
@@ -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);