summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-11-26 21:11:43 (GMT)
committerBrad King <brad.king@kitware.com>2003-11-26 21:11:43 (GMT)
commit8876adcd8195c7df17674023dc0de818da0504d9 (patch)
treeabcfb89a3081793e8083ea02baac2074afca7a6e
parent6e9a96119c0dd3c4fea12ceba6ed066521dc1c8d (diff)
downloadCMake-8876adcd8195c7df17674023dc0de818da0504d9.zip
CMake-8876adcd8195c7df17674023dc0de818da0504d9.tar.gz
CMake-8876adcd8195c7df17674023dc0de818da0504d9.tar.bz2
ERR: Fixed unused parameter warnings.
-rw-r--r--Source/cmSystemTools.cxx13
1 files changed, 8 insertions, 5 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 50a43ef..341348d 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -1061,12 +1061,15 @@ bool cmSystemTools::StringEndsWith(const char* str1, const char* str2)
return !strncmp(str1 + (strlen(str1)-strlen(str2)), str2, strlen(str2));
}
-bool cmSystemTools::CreateSymlink(const char* origName, const char* newName)
+#if defined(_WIN32) && !defined(__CYGWIN__)
+bool cmSystemTools::CreateSymlink(const char*, const char*)
{
-#if !defined(_WIN32) || defined(__CYGWIN__)
- return (symlink(origName, newName) >= 0);
-#else
// Should we create a copy here?
return false;
-#endif
}
+#else
+bool cmSystemTools::CreateSymlink(const char* origName, const char* newName)
+{
+ return (symlink(origName, newName) >= 0);
+}
+#endif