diff --git a/src/common/docview.cpp b/src/common/docview.cpp index c41b1f60ee..9c7b8d1c53 100644 --- a/src/common/docview.cpp +++ b/src/common/docview.cpp @@ -1179,7 +1179,6 @@ void wxDocManager::DoOpenMRUFile(unsigned n) if ( filename.empty() ) return; - wxString errMsg; // must contain exactly one "%s" if non-empty if ( wxFile::Exists(filename) ) { // Try to open it but don't give an error if it failed: this could be diff --git a/src/generic/dirctrlg.cpp b/src/generic/dirctrlg.cpp index 84ceb8b97d..cd5a1970c6 100644 --- a/src/generic/dirctrlg.cpp +++ b/src/generic/dirctrlg.cpp @@ -694,7 +694,7 @@ void wxGenericDirCtrl::PopulateNode(wxTreeItemId parentId) wxASSERT(data); - wxString search,path,filename; + wxString path; wxString dirName(data->m_path);