diff options
author | Brad King <brad.king@kitware.com> | 2014-08-11 13:30:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-08-11 13:30:22 (GMT) |
commit | 51c82c3a66f02192df4db5d51d95f7311bc2181f (patch) | |
tree | 777ae09ff86923433c847253c97fb2c2d4d5f3b0 /Source/kwsys/testCommandLineArguments1.cxx | |
parent | 3b0d634f70db6af5469e83bb7c14f687bfafda74 (diff) | |
parent | fe587db415b1cf728f42c5db55c3acbad7a9a529 (diff) | |
download | CMake-51c82c3a66f02192df4db5d51d95f7311bc2181f.zip CMake-51c82c3a66f02192df4db5d51d95f7311bc2181f.tar.gz CMake-51c82c3a66f02192df4db5d51d95f7311bc2181f.tar.bz2 |
Merge branch 'upstream-kwsys' into update-kwsys
Diffstat (limited to 'Source/kwsys/testCommandLineArguments1.cxx')
-rw-r--r-- | Source/kwsys/testCommandLineArguments1.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/kwsys/testCommandLineArguments1.cxx b/Source/kwsys/testCommandLineArguments1.cxx index 3b84c38..b65c37f 100644 --- a/Source/kwsys/testCommandLineArguments1.cxx +++ b/Source/kwsys/testCommandLineArguments1.cxx @@ -21,6 +21,7 @@ # include "kwsys_ios_iostream.h.in" #endif +#include <assert.h> /* assert */ #include <string.h> /* strcmp */ int testCommandLineArguments1(int argc, char* argv[]) @@ -83,6 +84,7 @@ int testCommandLineArguments1(int argc, char* argv[]) } for ( cc = 0; cc < newArgc; ++ cc ) { + assert(newArgv[cc]); /* Quiet Clang scan-build. */ kwsys_ios::cout << "Unused argument[" << cc << "] = [" << newArgv[cc] << "]" << kwsys_ios::endl; if ( cc >= 9 ) |