Commit 644f6e83 authored by Brad King's avatar Brad King
Browse files

COMP: Fixed shadowed variable warning.

parent 81677b31
...@@ -1157,10 +1157,10 @@ void cmLocalGenerator::GetIncludeDirectories(std::vector<std::string>& dirs) ...@@ -1157,10 +1157,10 @@ void cmLocalGenerator::GetIncludeDirectories(std::vector<std::string>& dirs)
const char* vtk_minor = m_Makefile->GetDefinition("VTK_MINOR_VERSION"); const char* vtk_minor = m_Makefile->GetDefinition("VTK_MINOR_VERSION");
vtk_major = vtk_major? vtk_major : "4"; vtk_major = vtk_major? vtk_major : "4";
vtk_minor = vtk_minor? vtk_minor : "4"; vtk_minor = vtk_minor? vtk_minor : "4";
int major = 0; int vmajor = 0;
int minor = 0; int vminor = 0;
if(sscanf(vtk_major, "%d", &major) && sscanf(vtk_minor, "%d", &minor) && if(sscanf(vtk_major, "%d", &vmajor) && sscanf(vtk_minor, "%d", &vminor) &&
major == 4 && minor <= 4) vmajor == 4 && vminor <= 4)
{ {
includeSourceDir = true; includeSourceDir = true;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment