Fix warnings for unused variables
This commit is contained in:
parent
85912a3777
commit
5f41fe03ca
@ -115,7 +115,7 @@ struct StreamData
|
|||||||
|
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
int OpenArchive(struct archive *a, void *client_data)
|
int OpenArchive(struct archive *, void *client_data)
|
||||||
{
|
{
|
||||||
struct StreamData *data = (StreamData*)client_data;
|
struct StreamData *data = (StreamData*)client_data;
|
||||||
if(data->GeneratedFileStream &&
|
if(data->GeneratedFileStream &&
|
||||||
@ -130,7 +130,7 @@ int OpenArchive(struct archive *a, void *client_data)
|
|||||||
return (ARCHIVE_FATAL);
|
return (ARCHIVE_FATAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
__LA_SSIZE_T WriteArchive(struct archive *a,
|
__LA_SSIZE_T WriteArchive(struct archive *,
|
||||||
void *client_data,
|
void *client_data,
|
||||||
const void *buff,
|
const void *buff,
|
||||||
size_t n)
|
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;
|
struct StreamData *data = (StreamData*)client_data;
|
||||||
if(data->GeneratedFileStream->Close())
|
if(data->GeneratedFileStream->Close())
|
||||||
|
@ -2051,7 +2051,7 @@ bool cmSystemTools::ExtractTar(const char* outFileName,
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool cmSystemTools::ListTar(const char* outFileName,
|
bool cmSystemTools::ListTar(const char* outFileName,
|
||||||
std::vector<cmStdString>& files, bool gzip,
|
std::vector<cmStdString>& files, bool ,
|
||||||
bool verbose)
|
bool verbose)
|
||||||
{
|
{
|
||||||
#if defined(CMAKE_BUILD_WITH_CMAKE)
|
#if defined(CMAKE_BUILD_WITH_CMAKE)
|
||||||
@ -2059,7 +2059,6 @@ bool cmSystemTools::ListTar(const char* outFileName,
|
|||||||
#else
|
#else
|
||||||
(void)outFileName;
|
(void)outFileName;
|
||||||
(void)files;
|
(void)files;
|
||||||
(void)gzip;
|
|
||||||
(void)verbose;
|
(void)verbose;
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
|
@ -102,6 +102,7 @@ static
|
|||||||
void* default_bzalloc ( void* opaque, Int32 items, Int32 size )
|
void* default_bzalloc ( void* opaque, Int32 items, Int32 size )
|
||||||
{
|
{
|
||||||
void* v = malloc ( items * size );
|
void* v = malloc ( items * size );
|
||||||
|
(void)opaque;
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -109,6 +110,7 @@ static
|
|||||||
void default_bzfree ( void* opaque, void* addr )
|
void default_bzfree ( void* opaque, void* addr )
|
||||||
{
|
{
|
||||||
if (addr != NULL) free ( 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)
|
int BZ_API(BZ2_bzflush) (BZFILE *b)
|
||||||
{
|
{
|
||||||
|
(void) b;
|
||||||
/* do nothing now... */
|
/* do nothing now... */
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user