summaryrefslogtreecommitdiffstats
path: root/Source/cmSetTargetPropertiesCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2015-03-25 16:38:37 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2015-03-25 16:38:37 (GMT)
commita4a1b729c63ec81037af06ac1009d12cc1dc3188 (patch)
tree3b96b876cb9d9ddc9d2fd3b0a8c339fa49cbc5a8 /Source/cmSetTargetPropertiesCommand.cxx
parent51b4321e5fdf9f7cbc54881037a45a474883ef47 (diff)
downloadCMake-a4a1b729c63ec81037af06ac1009d12cc1dc3188.zip
CMake-a4a1b729c63ec81037af06ac1009d12cc1dc3188.tar.gz
CMake-a4a1b729c63ec81037af06ac1009d12cc1dc3188.tar.bz2
Fix warnings from clang scanbuild.
Diffstat (limited to 'Source/cmSetTargetPropertiesCommand.cxx')
-rw-r--r--Source/cmSetTargetPropertiesCommand.cxx10
1 files changed, 1 insertions, 9 deletions
diff --git a/Source/cmSetTargetPropertiesCommand.cxx b/Source/cmSetTargetPropertiesCommand.cxx
index e41a0ca..06217bb 100644
--- a/Source/cmSetTargetPropertiesCommand.cxx
+++ b/Source/cmSetTargetPropertiesCommand.cxx
@@ -25,14 +25,12 @@ bool cmSetTargetPropertiesCommand
// 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)
@@ -43,15 +41,9 @@ bool cmSetTargetPropertiesCommand
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())