Fix warnings for unused variables

This commit is contained in:
Bill Hoffman 2009-11-03 16:50:49 -05:00
parent 85912a3777
commit 5f41fe03ca
3 changed files with 7 additions and 5 deletions

View File

@ -115,7 +115,7 @@ struct StreamData
extern "C"
{
int OpenArchive(struct archive *a, void *client_data)
int OpenArchive(struct archive *, void *client_data)
{
struct StreamData *data = (StreamData*)client_data;
if(data->GeneratedFileStream &&
@ -130,7 +130,7 @@ int OpenArchive(struct archive *a, void *client_data)
return (ARCHIVE_FATAL);
}
__LA_SSIZE_T WriteArchive(struct archive *a,
__LA_SSIZE_T WriteArchive(struct archive *,
void *client_data,
const void *buff,
size_t n)
@ -146,7 +146,7 @@ __LA_SSIZE_T WriteArchive(struct archive *a,
}
int CloseArchive(struct archive *a, void *client_data)
int CloseArchive(struct archive *, void *client_data)
{
struct StreamData *data = (StreamData*)client_data;
if(data->GeneratedFileStream->Close())

View File

@ -2051,7 +2051,7 @@ bool cmSystemTools::ExtractTar(const char* outFileName,
}
bool cmSystemTools::ListTar(const char* outFileName,
std::vector<cmStdString>& files, bool gzip,
std::vector<cmStdString>& files, bool ,
bool verbose)
{
#if defined(CMAKE_BUILD_WITH_CMAKE)
@ -2059,7 +2059,6 @@ bool cmSystemTools::ListTar(const char* outFileName,
#else
(void)outFileName;
(void)files;
(void)gzip;
(void)verbose;
return false;
#endif

View File

@ -102,6 +102,7 @@ static
void* default_bzalloc ( void* opaque, Int32 items, Int32 size )
{
void* v = malloc ( items * size );
(void)opaque;
return v;
}
@ -109,6 +110,7 @@ static
void default_bzfree ( void* opaque, void* addr )
{
if (addr != NULL) free ( addr );
(void)opaque;
}
@ -1505,6 +1507,7 @@ int BZ_API(BZ2_bzwrite) (BZFILE* b, void* buf, int len )
/*---------------------------------------------------*/
int BZ_API(BZ2_bzflush) (BZFILE *b)
{
(void) b;
/* do nothing now... */
return 0;
}