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/testCommandLineArguments1.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/testCommandLineArguments1.cxx')
-rw-r--r-- | Source/kwsys/testCommandLineArguments1.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/kwsys/testCommandLineArguments1.cxx b/Source/kwsys/testCommandLineArguments1.cxx index a8de98a..31d0937 100644 --- a/Source/kwsys/testCommandLineArguments1.cxx +++ b/Source/kwsys/testCommandLineArguments1.cxx @@ -63,12 +63,16 @@ int main(int argc, char* argv[]) kwsys_ios::cout << "Value of N: " << n << kwsys_ios::endl; kwsys_ios::cout << "Value of M: " << m << kwsys_ios::endl; kwsys_ios::cout << "Value of P: " << p.c_str() << kwsys_ios::endl; + if ( m ) + { + delete [] m; + } char** newArgv = 0; int newArgc = 0; arg.GetUnusedArguments(&newArgc, &newArgv); int cc; - char* valid_unused_args[9] = { + const char* valid_unused_args[9] = { 0, "--ignored", "--second-ignored", "third-ignored", "some", "junk", "at", "the", "end" }; |