diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-10-20 16:37:39 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-10-20 16:37:39 (GMT) |
commit | fc459731dbe6d1513a37865913355e596229e0eb (patch) | |
tree | b9a32dda52da9507f8e4b01793b1274dd08a4a64 /Source/kwsys/CommandLineArguments.cxx | |
parent | 30c71b5f20c93351a489b44147743fc8c74bbcf6 (diff) | |
download | CMake-fc459731dbe6d1513a37865913355e596229e0eb.zip CMake-fc459731dbe6d1513a37865913355e596229e0eb.tar.gz CMake-fc459731dbe6d1513a37865913355e596229e0eb.tar.bz2 |
COMP: Remove warning
Diffstat (limited to 'Source/kwsys/CommandLineArguments.cxx')
-rw-r--r-- | Source/kwsys/CommandLineArguments.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/kwsys/CommandLineArguments.cxx b/Source/kwsys/CommandLineArguments.cxx index a217791..172ad60 100644 --- a/Source/kwsys/CommandLineArguments.cxx +++ b/Source/kwsys/CommandLineArguments.cxx @@ -460,12 +460,11 @@ const char* CommandLineArguments::GetHelp(const char* arg) = this->Internals->Callbacks.find(cs->Help); if ( hit == this->Internals->Callbacks.end() ) { - return cs->Help; + break; } cs = &(hit->second); } - // Should never happened - return 0; + return cs->Help; } //---------------------------------------------------------------------------- |