summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-01-28 22:25:51 (GMT)
committerBrad King <brad.king@kitware.com>2005-01-28 22:25:51 (GMT)
commit562b0b820f1550618325365b57a25947f6d4e055 (patch)
tree0b7677195039ea6177ffcaf741300b75e4d43699
parent300416fa24438988ef7901b4fbba64964a328080 (diff)
downloadCMake-562b0b820f1550618325365b57a25947f6d4e055.zip
CMake-562b0b820f1550618325365b57a25947f6d4e055.tar.gz
CMake-562b0b820f1550618325365b57a25947f6d4e055.tar.bz2
COMP: Fix unused parameter warning when bootstrapping.
-rw-r--r--Source/cmGeneratedFileStream.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmGeneratedFileStream.cxx b/Source/cmGeneratedFileStream.cxx
index e891971..2b2e940 100644
--- a/Source/cmGeneratedFileStream.cxx
+++ b/Source/cmGeneratedFileStream.cxx
@@ -169,10 +169,10 @@ void cmGeneratedFileStreamBase::Open(const char* name)
}
//----------------------------------------------------------------------------
+#ifdef CMAKE_BUILD_WITH_CMAKE
int cmGeneratedFileStreamBase::CompressFile(const char* oldname,
const char* newname)
{
-#ifdef CMAKE_BUILD_WITH_CMAKE
gzFile gf = cm_zlib_gzopen(newname, "w");
if ( !gf )
{
@@ -198,10 +198,13 @@ int cmGeneratedFileStreamBase::CompressFile(const char* oldname,
fclose(ifs);
cm_zlib_gzclose(gf);
return 1;
+}
#else
+int cmGeneratedFileStreamBase::CompressFile(const char*, const char*)
+{
return 0;
-#endif
}
+#endif
//----------------------------------------------------------------------------
int cmGeneratedFileStreamBase::RenameFile(const char* oldname,