Explorar o código

COMP: Remove warning

Andy Cedilnik %!s(int64=21) %!d(string=hai) anos
pai
achega
fc459731db
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  1. 2 3
      Source/kwsys/CommandLineArguments.cxx

+ 2 - 3
Source/kwsys/CommandLineArguments.cxx

@@ -460,12 +460,11 @@ const char* CommandLineArguments::GetHelp(const char* arg)
       = this->Internals->Callbacks.find(cs->Help);
       = this->Internals->Callbacks.find(cs->Help);
     if ( hit == this->Internals->Callbacks.end() )
     if ( hit == this->Internals->Callbacks.end() )
       {
       {
-      return cs->Help;
+      break;
       }
       }
     cs = &(hit->second);
     cs = &(hit->second);
     }
     }
-  // Should never happened
-  return 0;
+  return cs->Help;
 }
 }
 
 
 //----------------------------------------------------------------------------
 //----------------------------------------------------------------------------