From 08dc3d51700c7ad125a4ebafb5172ea94de062a5 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 4 Nov 2009 14:43:51 -0500 Subject: 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. --- Utilities/cmbzip2/bzlib.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- cgit v0.12