From 5e7dce703e6f661521c5be6c108e929ac96b5255 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 22 Feb 2008 09:44:11 -0500 Subject: COMP: Fix unreachable code warning in cmOrderDirectories. --- Source/cmOrderDirectories.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmOrderDirectories.cxx b/Source/cmOrderDirectories.cxx index 4943356..25253d9 100644 --- a/Source/cmOrderDirectories.cxx +++ b/Source/cmOrderDirectories.cxx @@ -177,7 +177,7 @@ bool cmOrderDirectoriesConstraintSOName::FindConflict(std::string const& dir) std::set::const_iterator first = files.lower_bound(base); ++base[base.size()-1]; std::set::const_iterator last = files.upper_bound(base); - for(std::set::const_iterator fi = first; fi != last; ++fi) + if(first != last) { return true; } -- cgit v0.12