From 526b72e12ce05798e897ad544b28924db4651946 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Wed, 23 May 2007 08:24:29 -0400 Subject: [PATCH] COMP: don't user string::clear(), fix warnings about unused variables Alex --- Source/cmTarget.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index f6f23e003..6ae0aef57 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -1237,7 +1237,7 @@ const char* cmTarget::GetDirectory(const char* config, bool implib) } } -const char* cmTarget::ImportedGetDirectory(const char* config, bool implib) +const char* cmTarget::ImportedGetDirectory(const char* config, bool) { const char* location=this->GetLocation(config); std::string directory=cmSystemTools::GetFilenamePath(location); @@ -1693,9 +1693,9 @@ void cmTarget::GetFullNameInternal(TargetType type, } } -void cmTarget::ImportedGetFullNameInternal(TargetType type, +void cmTarget::ImportedGetFullNameInternal(TargetType , const char* config, - bool implib, + bool , std::string& outPrefix, std::string& outBase, std::string& outSuffix) @@ -1705,7 +1705,7 @@ void cmTarget::ImportedGetFullNameInternal(TargetType type, std::string location=this->GetLocation(config); outBase=cmSystemTools::GetFilenameWithoutExtension(location); outSuffix = cmSystemTools::GetFilenameExtension(location); - outPrefix.clear(); + outPrefix = ""; }