From: Vadim Zeitlin Date: Sat, 7 Jul 2012 13:27:51 +0000 (+0000) Subject: Fix uninitialized variable warning in wxMSW wxFileSystemWatcher code. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ff534ba469473a9ace193e736ca131144df307f9 Fix uninitialized variable warning in wxMSW wxFileSystemWatcher code. This warning was harmless as the variable was in fact always initialized if the code where it was used was reached but g++ 4.6.1 is not smart enough to see it, just as MSVC for which we already had a workaround. So initialize it explicitly just to suppress the warning. See #14459. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71976 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/fswatcher.cpp b/src/msw/fswatcher.cpp index 7f2bcd6e89..a186acd2ca 100644 --- a/src/msw/fswatcher.cpp +++ b/src/msw/fswatcher.cpp @@ -136,7 +136,7 @@ void wxFSWatcherImplMSW::SendEvent(wxFileSystemWatcherEvent& evt) bool wxFSWatcherImplMSW::DoSetUpWatch(wxFSWatchEntryMSW& watch) { - BOOL bWatchSubtree wxDUMMY_INITIALIZE(FALSE); + BOOL bWatchSubtree = FALSE; switch ( watch.GetType() ) {