summaryrefslogtreecommitdiff
path: root/Source/cmSetTestsPropertiesCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2015-03-26 11:05:56 -0400
committerBill Hoffman <bill.hoffman@kitware.com>2015-03-26 11:05:56 -0400
commite680d43d7dd96096962379f627828a182ac0fa80 (patch)
treec312ff22bd3dc79c2fd74efaaa98bac7b5cf7cb9 /Source/cmSetTestsPropertiesCommand.cxx
parenta4a1b729c63ec81037af06ac1009d12cc1dc3188 (diff)
downloadcmake-e680d43d7dd96096962379f627828a182ac0fa80.tar.gz
Fix an unused variable warning from scanbuild.
Diffstat (limited to 'Source/cmSetTestsPropertiesCommand.cxx')
-rw-r--r--Source/cmSetTestsPropertiesCommand.cxx11
1 files changed, 1 insertions, 10 deletions
diff --git a/Source/cmSetTestsPropertiesCommand.cxx b/Source/cmSetTestsPropertiesCommand.cxx
index d079a19a41..e9cfaccea5 100644
--- a/Source/cmSetTestsPropertiesCommand.cxx
+++ b/Source/cmSetTestsPropertiesCommand.cxx
@@ -26,14 +26,12 @@ bool cmSetTestsPropertiesCommand
// first collect up the list of files
std::vector<std::string> propertyPairs;
- bool doingFiles = true;
int numFiles = 0;
std::vector<std::string>::const_iterator j;
for(j= args.begin(); j != args.end();++j)
{
if(*j == "PROPERTIES")
{
- doingFiles = false;
// now loop through the rest of the arguments, new style
++j;
if (std::distance(j, args.end()) % 2 != 0)
@@ -44,15 +42,9 @@ bool cmSetTestsPropertiesCommand
propertyPairs.insert(propertyPairs.end(), j, args.end());
break;
}
- else if (doingFiles)
- {
- numFiles++;
- }
else
{
- this->SetError("called with illegal arguments, maybe "
- "missing a PROPERTIES specifier?");
- return false;
+ numFiles++;
}
}
if(propertyPairs.empty())
@@ -62,7 +54,6 @@ bool cmSetTestsPropertiesCommand
return false;
}
-
// now loop over all the targets
int i;
for(i = 0; i < numFiles; ++i)