diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-07-17 01:11:50 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-07-17 01:11:50 (GMT) |
commit | 22971652e04e0481482133c3f6fbc3c91d9becb5 (patch) | |
tree | 02129693f135a4eadc24f1ef3ce7614cebc8af96 /Source/kwsys/testCommandLineArguments.cxx | |
parent | d195bb955d797fb57c4f60183dab8718dd282041 (diff) | |
download | CMake-22971652e04e0481482133c3f6fbc3c91d9becb5.zip CMake-22971652e04e0481482133c3f6fbc3c91d9becb5.tar.gz CMake-22971652e04e0481482133c3f6fbc3c91d9becb5.tar.bz2 |
COMP: Remove some warnings
Diffstat (limited to 'Source/kwsys/testCommandLineArguments.cxx')
-rw-r--r-- | Source/kwsys/testCommandLineArguments.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/kwsys/testCommandLineArguments.cxx b/Source/kwsys/testCommandLineArguments.cxx index 72707f9..03d63a8 100644 --- a/Source/kwsys/testCommandLineArguments.cxx +++ b/Source/kwsys/testCommandLineArguments.cxx @@ -89,7 +89,7 @@ int main(int argc, char* argv[]) bool valid_bools[] = { true, true, false }; kwsys_stl::vector<char*> strings_argument; - char* valid_strings[] = { "andy", "bill", "brad", "ken" }; + const char* valid_strings[] = { "andy", "bill", "brad", "ken" }; kwsys_stl::vector<kwsys_stl::string> stl_strings_argument; kwsys_stl::string valid_stl_strings[] = { "ken", "brad", "bill", "andy" }; @@ -176,5 +176,11 @@ int main(int argc, char* argv[]) kwsys_ios::cout << "bool_arg1 variable was set to: " << bool_arg1 << kwsys_ios::endl; kwsys_ios::cout << "bool_arg2 variable was set to: " << bool_arg2 << kwsys_ios::endl; kwsys_ios::cout << kwsys_ios::endl; + + for ( cc = 0; cc < strings_argument.size(); ++ cc ) + { + delete [] strings_argument[cc]; + strings_argument[cc] = 0; + } return res; } |