]> git.saurik.com Git - wxWidgets.git/commitdiff
suppress harmless warning about possibly uninitialized variable in OpenLogFile()...
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 3 Jul 2009 12:13:41 +0000 (12:13 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 3 Jul 2009 12:13:41 +0000 (12:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/logg.cpp

index 6d5ea29f6162b2ae1a053217f70d06e1b3a33b58..e6600b0ddb5bae56e591d380800b77b85c87ae73 100644 (file)
@@ -1142,7 +1142,7 @@ static int OpenLogFile(wxFile& file, wxString *pFilename, wxWindow *parent)
 
     // open file
     // ---------
-    bool bOk;
+    bool bOk = true; // suppress warning about it being possible uninitialized
     if ( wxFile::Exists(filename) ) {
         bool bAppend = false;
         wxString strMsg;