bzip2: Disable Borland warnings
We disable warnings to silence them while making minimal changes to third-party code.
This commit is contained in:
parent
ccd831c559
commit
60855f620b
@ -102,7 +102,6 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -110,7 +109,6 @@ 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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1507,7 +1505,6 @@ 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;
|
||||||
}
|
}
|
||||||
|
@ -33,6 +33,12 @@
|
|||||||
#include "bzlib.h"
|
#include "bzlib.h"
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(__BORLANDC__)
|
||||||
|
# pragma warn -8004 /* Assigned value never used. */
|
||||||
|
# pragma warn -8008 /* Condition is always true/false. */
|
||||||
|
# pragma warn -8066 /* Unreachable code. */
|
||||||
|
# pragma warn -8057 /* Unused parameter. */
|
||||||
|
#endif
|
||||||
|
|
||||||
/*-- General stuff. --*/
|
/*-- General stuff. --*/
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user