From 8876adcd8195c7df17674023dc0de818da0504d9 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 26 Nov 2003 16:11:43 -0500 Subject: [PATCH] ERR: Fixed unused parameter warnings. --- Source/cmSystemTools.cxx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 50a43ef03..341348d3b 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