From a4a1b729c63ec81037af06ac1009d12cc1dc3188 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Wed, 25 Mar 2015 12:38:37 -0400 Subject: Fix warnings from clang scanbuild. --- Source/cmSetTargetPropertiesCommand.cxx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'Source/cmSetTargetPropertiesCommand.cxx') diff --git a/Source/cmSetTargetPropertiesCommand.cxx b/Source/cmSetTargetPropertiesCommand.cxx index e41a0ca358..06217bb1f7 100644 --- a/Source/cmSetTargetPropertiesCommand.cxx +++ b/Source/cmSetTargetPropertiesCommand.cxx @@ -25,14 +25,12 @@ bool cmSetTargetPropertiesCommand // first collect up the list of files std::vector propertyPairs; - bool doingFiles = true; int numFiles = 0; std::vector::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()) -- cgit v1.2.1