summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/CPack/cmCPackArchiveGenerator.cxx6
-rw-r--r--Source/cmSystemTools.cxx3
-rw-r--r--Utilities/cmbzip2/bzlib.c3
3 files changed, 7 insertions, 5 deletions
diff --git a/Source/CPack/cmCPackArchiveGenerator.cxx b/Source/CPack/cmCPackArchiveGenerator.cxx
index e6a83b1..9d8edf8 100644
--- a/Source/CPack/cmCPackArchiveGenerator.cxx
+++ b/Source/CPack/cmCPackArchiveGenerator.cxx
@@ -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())
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index d593d7e..b487c5c 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -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
diff --git a/Utilities/cmbzip2/bzlib.c b/Utilities/cmbzip2/bzlib.c
index baed288..aeecef1 100644
--- a/Utilities/cmbzip2/bzlib.c
+++ b/Utilities/cmbzip2/bzlib.c
@@ -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;
}