From f87d7039e24635b92e3793b8f19df390e084be73 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 20 Nov 2002 09:06:23 -0500 Subject: [PATCH] ERR: Fixed unused parameter warning. --- Source/cmLocalUnixMakefileGenerator.cxx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx index 52af3e50b..164ce5e6c 100644 --- a/Source/cmLocalUnixMakefileGenerator.cxx +++ b/Source/cmLocalUnixMakefileGenerator.cxx @@ -283,10 +283,9 @@ void cmLocalUnixMakefileGenerator::OutputMakefile(const char* file, -std::string -cmLocalUnixMakefileGenerator::GetOutputExtension(const char* s) -{ #if defined(_WIN32) && ! defined(__CYGWIN__) +std::string cmLocalUnixMakefileGenerator::GetOutputExtension(const char* s) +{ std::string sourceExtension = s; if(sourceExtension == "def") { @@ -301,10 +300,13 @@ cmLocalUnixMakefileGenerator::GetOutputExtension(const char* s) return ".res"; } return ".obj"; -#else - return ".o"; -#endif } +#else +std::string cmLocalUnixMakefileGenerator::GetOutputExtension(const char*) +{ + return ".o"; +} +#endif