From 562b0b820f1550618325365b57a25947f6d4e055 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 28 Jan 2005 17:25:51 -0500 Subject: COMP: Fix unused parameter warning when bootstrapping. --- Source/cmGeneratedFileStream.cxx | 7 +++++-- 1 file 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, -- cgit v0.12