diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-03-12 15:03:03 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-03-12 15:03:03 (GMT) |
commit | 83daad3ec2051ca81a9200923aaae2e5028ce9b9 (patch) | |
tree | e1a8ccc3042bb37bc3847bd2ccfbe0762882ae39 | |
parent | 1cda55e682f150a2a6eb481cc82a5cfdde8660b0 (diff) | |
download | CMake-83daad3ec2051ca81a9200923aaae2e5028ce9b9.zip CMake-83daad3ec2051ca81a9200923aaae2e5028ce9b9.tar.gz CMake-83daad3ec2051ca81a9200923aaae2e5028ce9b9.tar.bz2 |
ENH: remove warning
-rw-r--r-- | Source/kwsys/SystemTools.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index dfcbcd8..0096298 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -1923,6 +1923,8 @@ kwsys_stl::string SystemTools::FindProgram( return ""; } kwsys_stl::string name = nameIn; + kwsys_stl::vector<kwsys_stl::string> extensions; +#if defined (_WIN32) || defined(__CYGWIN__) | defined(__MINGW32__) bool hasExtension = false; // check to see if the name already has a .xxx at // the end of it @@ -1930,8 +1932,6 @@ kwsys_stl::string SystemTools::FindProgram( { hasExtension = true; } - kwsys_stl::vector<kwsys_stl::string> extensions; -#if defined (_WIN32) || defined(__CYGWIN__) | defined(__MINGW32__) // on windows try .com then .exe if(!hasExtension) { |