summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,
524 off_t base = sys->tell(fh); 524 off_t base = sys->tell(fh);
525 char buf[256], *str; 525 char buf[256], *str;
526 unsigned int len, i, ok; 526 unsigned int len, i, ok;
527 (void)cab;
527 528
528 /* read up to 256 bytes */ 529 /* read up to 256 bytes */
529 len = sys->read(fh, &buf[0], 256); 530 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,
115{ 115{
116 struct mspack_file_p *fh; 116 struct mspack_file_p *fh;
117 const char *fmode; 117 const char *fmode;
118 (void)self;
118 119
119 switch (mode) { 120 switch (mode) {
120 case MSPACK_SYS_OPEN_READ: fmode = "rb"; break; 121 case MSPACK_SYS_OPEN_READ: fmode = "rb"; break;
@@ -199,10 +200,12 @@ static void *msp_alloc(struct mspack_system *self, size_t bytes) {
199#ifdef DEBUG 200#ifdef DEBUG
200 /* make uninitialised data obvious */ 201 /* make uninitialised data obvious */
201 char *buf = malloc(bytes + 8); 202 char *buf = malloc(bytes + 8);
203 (void)self;
202 if (buf) memset(buf, 0xDC, bytes); 204 if (buf) memset(buf, 0xDC, bytes);
203 *((size_t *)buf) = bytes; 205 *((size_t *)buf) = bytes;
204 return &buf[8]; 206 return &buf[8];
205#else 207#else
208 (void)self;
206 return malloc(bytes); 209 return malloc(bytes);
207#endif 210#endif
208} 211}