summaryrefslogtreecommitdiffstats
path: root/Utilities/cmbzip2
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-11-04 19:43:51 (GMT)
committerBrad King <brad.king@kitware.com>2009-11-04 19:43:51 (GMT)
commit08dc3d51700c7ad125a4ebafb5172ea94de062a5 (patch)
tree341b48f6ab8014c98ee97653eae09fc91edde1f3 /Utilities/cmbzip2
parent3a790251f4e110a274e3fd5edabb2766882d8eb4 (diff)
downloadCMake-08dc3d51700c7ad125a4ebafb5172ea94de062a5.zip
CMake-08dc3d51700c7ad125a4ebafb5172ea94de062a5.tar.gz
CMake-08dc3d51700c7ad125a4ebafb5172ea94de062a5.tar.bz2
bzip2: Restore fix for unused variables
The commit "bzip2: Disable Borland warnings" accidentally reverted changes from commit "Fix warnings for unused variables". This restores them.
Diffstat (limited to 'Utilities/cmbzip2')
-rw-r--r--Utilities/cmbzip2/bzlib.c3
1 files changed, 3 insertions, 0 deletions
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;
}