ENH: remove warning

This commit is contained in:
Bill Hoffman 2006-03-12 10:03:03 -05:00
parent 1cda55e682
commit 83daad3ec2
1 changed files with 2 additions and 2 deletions

View File

@ -1923,6 +1923,8 @@ kwsys_stl::string SystemTools::FindProgram(
return ""; return "";
} }
kwsys_stl::string name = nameIn; kwsys_stl::string name = nameIn;
kwsys_stl::vector<kwsys_stl::string> extensions;
#if defined (_WIN32) || defined(__CYGWIN__) | defined(__MINGW32__)
bool hasExtension = false; bool hasExtension = false;
// check to see if the name already has a .xxx at // check to see if the name already has a .xxx at
// the end of it // the end of it
@ -1930,8 +1932,6 @@ kwsys_stl::string SystemTools::FindProgram(
{ {
hasExtension = true; hasExtension = true;
} }
kwsys_stl::vector<kwsys_stl::string> extensions;
#if defined (_WIN32) || defined(__CYGWIN__) | defined(__MINGW32__)
// on windows try .com then .exe // on windows try .com then .exe
if(!hasExtension) if(!hasExtension)
{ {