From a64a3c4760dce0bc897f82ca7f04691261c83a2d Mon Sep 17 00:00:00 2001
From: Cyrille Valladeau <cyrille.valladeau@c-s.fr>
Date: Wed, 25 May 2011 11:09:57 +0200
Subject: [PATCH] WRG: windows warnong (missing return)

---
 Code/Testing/otbTestMain.h | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/Code/Testing/otbTestMain.h b/Code/Testing/otbTestMain.h
index 337cb548ea..0ff19b7a1f 100644
--- a/Code/Testing/otbTestMain.h
+++ b/Code/Testing/otbTestMain.h
@@ -272,10 +272,8 @@ int main(int ac, char* av[])
         std::cerr << "Failure: " << testToRun << ": no test identified " << testToRun << "\n";
         return -1;
       }
-
-  if (j != StringToTestFunctionMap.end())
+  else
     {
-      std::cout<<"goooo?: "<<std::endl;
     MainFuncPointer f = j->second;
     int             result;
     try
@@ -313,8 +311,6 @@ int main(int ac, char* av[])
       result = EXIT_FAILURE;
       }
 
-    std::cout<<"result: "<<result<<std::endl;
-
     if (result != EXIT_SUCCESS )
       {
         return -1;
@@ -399,7 +395,7 @@ int main(int ac, char* av[])
       return -1;
       }
     std::cout << "-------------  End control baseline tests    -------------" << std::endl;
-  
+    
     return result;
     }
 }
-- 
GitLab