summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/mspack
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2013-11-05 00:06:50 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2013-11-12 22:43:16 +0100
commit3c6f3945dd5f00760945c229170acd51078f3d6a (patch)
tree15df6439b040257dbd8678f46c9b5f238f316231 /rbutil/rbutilqt/mspack
parent6bff0f779f4cc2f012dd639814c0dd48fea91e26 (diff)
downloadrockbox-3c6f3945dd5f00760945c229170acd51078f3d6a.tar.gz
rockbox-3c6f3945dd5f00760945c229170acd51078f3d6a.tar.bz2
rockbox-3c6f3945dd5f00760945c229170acd51078f3d6a.zip
Suppress some unused variable warnings in libmspack.
Change-Id: Iccc98cf2092a5a0101021e24b051c42743b9becf
Diffstat (limited to 'rbutil/rbutilqt/mspack')
-rw-r--r--rbutil/rbutilqt/mspack/cabd.c1
-rw-r--r--rbutil/rbutilqt/mspack/system-mspack.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/mspack/cabd.c b/rbutil/rbutilqt/mspack/cabd.c
index cf91cfb3b4..6549d7b8cf 100644
--- a/rbutil/rbutilqt/mspack/cabd.c
+++ b/rbutil/rbutilqt/mspack/cabd.c
@@ -524,6 +524,7 @@ static char *cabd_read_string(struct mspack_system *sys,
off_t base = sys->tell(fh);
char buf[256], *str;
unsigned int len, i, ok;
+ (void)cab;
/* read up to 256 bytes */
len = sys->read(fh, &buf[0], 256);
diff --git a/rbutil/rbutilqt/mspack/system-mspack.c b/rbutil/rbutilqt/mspack/system-mspack.c
index a7f4a5c218..13946576fc 100644
--- a/rbutil/rbutilqt/mspack/system-mspack.c
+++ b/rbutil/rbutilqt/mspack/system-mspack.c
@@ -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
}