diff --git a/src/common/fswatchercmn.cpp b/src/common/fswatchercmn.cpp index a31549b753..f869a8890e 100644 --- a/src/common/fswatchercmn.cpp +++ b/src/common/fswatchercmn.cpp @@ -143,8 +143,8 @@ wxFileSystemWatcherBase::AddAny(const wxFileName& path, } else { - wxFSWatchInfo& watch = it->second; - int count = watch.IncRef(); + wxFSWatchInfo& watch2 = it->second; + int count = watch2.IncRef(); wxLogTrace(wxTRACE_FSWATCHER, "'%s' is now watched %d times", canonical, count); }