[cmake-commits] king committed cmGlobalXCodeGenerator.cxx 1.165 1.166

cmake-commits at cmake.org cmake-commits at cmake.org
Thu Sep 13 09:14:48 EDT 2007


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv21397

Modified Files:
	cmGlobalXCodeGenerator.cxx 
Log Message:
COMP: Fix shadowed local warning by scoping the previous decl properly.


Index: cmGlobalXCodeGenerator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmGlobalXCodeGenerator.cxx,v
retrieving revision 1.165
retrieving revision 1.166
diff -u -d -r1.165 -r1.166
--- cmGlobalXCodeGenerator.cxx	10 Sep 2007 14:22:19 -0000	1.165
+++ cmGlobalXCodeGenerator.cxx	13 Sep 2007 13:14:46 -0000	1.166
@@ -1489,11 +1489,11 @@
   std::string dirs;
   std::vector<std::string> includes;
   this->CurrentLocalGenerator->GetIncludeDirectories(includes);
-  std::vector<std::string>::iterator i = includes.begin();
   std::string fdirs;
   std::set<cmStdString> emitted;
   emitted.insert("/System/Library/Frameworks");
-  for(;i != includes.end(); ++i)
+  for(std::vector<std::string>::iterator i = includes.begin();
+      i != includes.end(); ++i)
     {
     if(cmSystemTools::IsPathToFramework(i->c_str()))
       {



More information about the Cmake-commits mailing list