1
0
Fork 0
forked from len0rd/rockbox

Suppress some unused variable warnings in libmspack.

Change-Id: Iccc98cf2092a5a0101021e24b051c42743b9becf
This commit is contained in:
Dominik Riebeling 2013-11-05 00:06:50 +01:00
parent 6bff0f779f
commit 3c6f3945dd
2 changed files with 4 additions and 0 deletions

View file

@ -115,6 +115,7 @@ static struct mspack_file *msp_open(struct mspack_system *self,
{
struct mspack_file_p *fh;
const char *fmode;
(void)self;
switch (mode) {
case MSPACK_SYS_OPEN_READ: fmode = "rb"; break;
@ -199,10 +200,12 @@ static void *msp_alloc(struct mspack_system *self, size_t bytes) {
#ifdef DEBUG
/* make uninitialised data obvious */
char *buf = malloc(bytes + 8);
(void)self;
if (buf) memset(buf, 0xDC, bytes);
*((size_t *)buf) = bytes;
return &buf[8];
#else
(void)self;
return malloc(bytes);
#endif
}