summaryrefslogtreecommitdiffstats
path: root/Source/cmFindPackageCommand.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/cmFindPackageCommand.cxx
parent51b4321e5fdf9f7cbc54881037a45a474883ef47 (diff)
downloadCMake-a4a1b729c63ec81037af06ac1009d12cc1dc3188.zip
CMake-a4a1b729c63ec81037af06ac1009d12cc1dc3188.tar.gz
CMake-a4a1b729c63ec81037af06ac1009d12cc1dc3188.tar.bz2
Fix warnings from clang scanbuild.
Diffstat (limited to 'Source/cmFindPackageCommand.cxx')
-rw-r--r--Source/cmFindPackageCommand.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx
index 87f9037..4d7fd60 100644
--- a/Source/cmFindPackageCommand.cxx
+++ b/Source/cmFindPackageCommand.cxx
@@ -679,7 +679,6 @@ bool cmFindPackageCommand::HandlePackageMode()
if(cmSystemTools::IsOff(def) || !fileFound)
{
fileFound = this->FindConfig();
- def = this->Makefile->GetDefinition(this->Variable);
}
// Sanity check.
@@ -1598,7 +1597,6 @@ bool cmFindPackageCommand::CheckVersion(std::string const& config_file)
if ((haveResult == false) && (this->Version.empty()))
{
result = true;
- haveResult = true;
}
ConfigFileInfo configFileInfo;