summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2006-12-08 14:27:52 (GMT)
committerKen Martin <ken.martin@kitware.com>2006-12-08 14:27:52 (GMT)
commit1dd5db023592c3c5488adb67dfba433ab5b399af (patch)
treec05958a07745af7313e7214d672ae9f986fe9bba /Source
parent5ccd5a4a5b90d2af569a750016bef8e8f5e8ca40 (diff)
downloadCMake-1dd5db023592c3c5488adb67dfba433ab5b399af.zip
CMake-1dd5db023592c3c5488adb67dfba433ab5b399af.tar.gz
CMake-1dd5db023592c3c5488adb67dfba433ab5b399af.tar.bz2
COMP: fix some warnings and style issues
Diffstat (limited to 'Source')
-rw-r--r--Source/cmDocumentation.cxx3
-rw-r--r--Source/cmSetPropertiesCommand.cxx4
-rw-r--r--Source/cmTarget.cxx3
-rw-r--r--Source/cmake.cxx5
4 files changed, 6 insertions, 9 deletions
diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx
index 53b1342..840b5c0 100644
--- a/Source/cmDocumentation.cxx
+++ b/Source/cmDocumentation.cxx
@@ -580,7 +580,8 @@ void cmDocumentation::SetCommandsSection(const cmDocumentationEntry* section)
}
//----------------------------------------------------------------------------
-void cmDocumentation::SetPropertiesSection(const cmDocumentationEntry* section)
+void cmDocumentation
+::SetPropertiesSection(const cmDocumentationEntry* section)
{
this->SetSection(cmDocumentationPropertiesHeader, section, 0,
this->PropertiesSection);
diff --git a/Source/cmSetPropertiesCommand.cxx b/Source/cmSetPropertiesCommand.cxx
index d69dddd..8024c6a 100644
--- a/Source/cmSetPropertiesCommand.cxx
+++ b/Source/cmSetPropertiesCommand.cxx
@@ -110,8 +110,8 @@ bool cmSetPropertiesCommand::InitialPass(
std::string message = "Can not find target to add properties to: ";
message += scopeName;
this->SetError(message.c_str());
+ return ret;
}
- return ret;
}
break;
case cmProperty::DIRECTORY:
@@ -146,8 +146,8 @@ bool cmSetPropertiesCommand::InitialPass(
if (!ret)
{
this->SetError(errors.c_str());
+ return ret;
}
- return ret;
}
break;
case cmProperty::SOURCE_FILE:
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 857cdba..31cd078 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -481,7 +481,8 @@ void cmTarget::TraceVSDependencies(std::string projFile,
tLocation = cmSystemTools::GetFilenamePath(tLocation);
std::string depLocation = cmSystemTools::GetFilenamePath(
std::string(fullName));
- depLocation = cmSystemTools::CollapseFullPath(depLocation.c_str());
+ depLocation =
+ cmSystemTools::CollapseFullPath(depLocation.c_str());
tLocation = cmSystemTools::CollapseFullPath(tLocation.c_str());
if(depLocation == tLocation)
{
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 2d813f5..ba8334e 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -2835,19 +2835,14 @@ bool cmake::IsPropertyDefined(const char *name, cmProperty::ScopeType scope)
{
case cmProperty::GLOBAL:
return this->GlobalProperties.IsPropertyDefined(name);
- break;
case cmProperty::TARGET:
return this->TargetProperties.IsPropertyDefined(name);
- break;
case cmProperty::SOURCE_FILE:
return this->SourceFileProperties.IsPropertyDefined(name);
- break;
case cmProperty::DIRECTORY:
return this->DirectoryProperties.IsPropertyDefined(name);
- break;
case cmProperty::TEST:
return this->TestProperties.IsPropertyDefined(name);
- break;
}
return false;