From 83daad3ec2051ca81a9200923aaae2e5028ce9b9 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Sun, 12 Mar 2006 10:03:03 -0500 Subject: [PATCH] ENH: remove warning --- Source/kwsys/SystemTools.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index dfcbcd882..00962985f 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 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 extensions; -#if defined (_WIN32) || defined(__CYGWIN__) | defined(__MINGW32__) // on windows try .com then .exe if(!hasExtension) {