From: Vadim Zeitlin Date: Thu, 22 Apr 2010 14:16:26 +0000 (+0000) Subject: Fix harmless warning about a possibly uninitialized variable. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5811b24f5eea5152d852b77350ae991aa9245a47 Fix harmless warning about a possibly uninitialized variable. gcc complained about possibly uninitialized variable in QueueTestCase in optimized build, just initialize it to suppress this warning. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/tests/thread/queue.cpp b/tests/thread/queue.cpp index a70108db60..16a4dc3f14 100644 --- a/tests/thread/queue.cpp +++ b/tests/thread/queue.cpp @@ -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);