mirror of
https://github.com/reactos/CMake.git
synced 2025-01-23 03:58:02 +00:00
COMP: Fix unused parameter warning when bootstrapping.
This commit is contained in:
parent
300416fa24
commit
562b0b820f
@ -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
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#else
|
||||
int cmGeneratedFileStreamBase::CompressFile(const char*, const char*)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
int cmGeneratedFileStreamBase::RenameFile(const char* oldname,
|
||||
|
Loading…
x
Reference in New Issue
Block a user