summaryrefslogtreecommitdiffstats
path: root/testCommandLineArguments1.cxx
diff options
context:
space:
mode:
authorKWSys Robot <kwrobot@kitware.com>2014-08-07 13:55:30 (GMT)
committerBrad King <brad.king@kitware.com>2014-08-11 13:30:16 (GMT)
commitfe587db415b1cf728f42c5db55c3acbad7a9a529 (patch)
tree79cf4a96ddcd25c67b4c7036dfdc1e98a0b9e238 /testCommandLineArguments1.cxx
parent158c6d1cffe863fde284d4e5eeeb8129d40ce0e9 (diff)
downloadCMake-fe587db415b1cf728f42c5db55c3acbad7a9a529.zip
CMake-fe587db415b1cf728f42c5db55c3acbad7a9a529.tar.gz
CMake-fe587db415b1cf728f42c5db55c3acbad7a9a529.tar.bz2
KWSys 2014-08-07 (4d526097)
Extract upstream KWSys using the following shell commands. $ git archive --prefix=upstream-kwsys/ 4d526097 | tar x $ git shortlog --no-merges --abbrev=8 --format='%h %s' e787837a..4d526097 Brad King (2): 4791701a SystemTools: Remove ConvertWindowsCommandLineToUnixArguments method 4d526097 Add assert() to quiet Clang scan-build warnings Change-Id: I15e4ad710a8ad01f96761a89f2c1517f3c2aa835
Diffstat (limited to 'testCommandLineArguments1.cxx')
-rw-r--r--testCommandLineArguments1.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/testCommandLineArguments1.cxx b/testCommandLineArguments1.cxx
index 3b84c38..b65c37f 100644
--- a/testCommandLineArguments1.cxx
+++ b/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 )