[cmake-commits] king committed cmOrderDirectories.cxx 1.3 1.4
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Feb 22 09:44:13 EST 2008
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv14581
Modified Files:
cmOrderDirectories.cxx
Log Message:
COMP: Fix unreachable code warning in cmOrderDirectories.
Index: cmOrderDirectories.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmOrderDirectories.cxx,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- cmOrderDirectories.cxx 21 Feb 2008 18:59:34 -0000 1.3
+++ cmOrderDirectories.cxx 22 Feb 2008 14:44:11 -0000 1.4
@@ -177,7 +177,7 @@
std::set<cmStdString>::const_iterator first = files.lower_bound(base);
++base[base.size()-1];
std::set<cmStdString>::const_iterator last = files.upper_bound(base);
- for(std::set<cmStdString>::const_iterator fi = first; fi != last; ++fi)
+ if(first != last)
{
return true;
}
More information about the Cmake-commits
mailing list