summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-09-03 23:54:43 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-09-03 23:54:43 +0000
commit6cb5ec1bfef3ca621a1de8e3f7dda0f333407961 (patch)
treebffdc904dc164b364e5e2d8be6e5e006806d98e7 /apps/plugins
parentbd9c172b9eba76f22987096662467917abdc6b85 (diff)
Remove several 'set but not used' GCC 4.6.1 warnings from MikMod.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30426 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/mikmod/load_far.c4
-rw-r--r--apps/plugins/mikmod/load_it.c8
-rw-r--r--apps/plugins/mikmod/mikmod.c4
-rw-r--r--apps/plugins/mikmod/mlutil.c4
4 files changed, 9 insertions, 11 deletions
diff --git a/apps/plugins/mikmod/load_far.c b/apps/plugins/mikmod/load_far.c
index bbb3c39d91..a45e207737 100644
--- a/apps/plugins/mikmod/load_far.c
+++ b/apps/plugins/mikmod/load_far.c
@@ -238,12 +238,12 @@ int FAR_Load(int curious)
if(!AllocPatterns()) return 0;
for(t=0;t<of.numpat;t++) {
- UBYTE rows=0,tempo;
+ UBYTE rows=0/* ,tempo */;
memset(pat,0,256*16*4*sizeof(FARNOTE));
if(mh2->patsiz[t]) {
rows = _mm_read_UBYTE(modreader);
- tempo = _mm_read_UBYTE(modreader);
+ /* tempo = */ (void)_mm_read_UBYTE(modreader);
crow = pat;
/* file often allocates 64 rows even if there are less in pattern */
diff --git a/apps/plugins/mikmod/load_it.c b/apps/plugins/mikmod/load_it.c
index 842fafe471..7f966339cf 100644
--- a/apps/plugins/mikmod/load_it.c
+++ b/apps/plugins/mikmod/load_it.c
@@ -446,7 +446,7 @@ int IT_Load(int curious)
int t,u,lp;
INSTRUMENT *d;
SAMPLE *q;
- int compressed=0;
+ /* int compressed=0; */
numtrk=0;
filters=0;
@@ -672,7 +672,7 @@ int IT_Load(int curious)
if(s.flag&2) q->flags|=SF_16BITS;
if((s.flag&8)&&(mh->cwt>=0x214)) {
q->flags|=SF_ITPACKED;
- compressed=1;
+ /* compressed=1; */
}
if(s.flag&16) q->flags|=SF_LOOP;
if(s.flag&64) q->flags|=SF_BIDI;
@@ -963,8 +963,6 @@ int IT_Load(int curious)
if(!AllocTracks()) return 0;
for(t=0;t<of.numpat;t++) {
- UWORD packlen;
-
/* seek to pattern position */
if(!paraptr[mh->insnum+mh->smpnum+t]) { /* 0 -> empty 64 row pattern */
of.pattrows[t]=64;
@@ -977,7 +975,7 @@ int IT_Load(int curious)
}
} else {
_mm_fseek(modreader,((long)paraptr[mh->insnum+mh->smpnum+t]),SEEK_SET);
- packlen=_mm_read_I_UWORD(modreader);
+ (void)_mm_read_I_UWORD(modreader);
of.pattrows[t]=_mm_read_I_UWORD(modreader);
_mm_read_I_ULONG(modreader);
if(!IT_ReadPattern(of.pattrows[t])) return 0;
diff --git a/apps/plugins/mikmod/mikmod.c b/apps/plugins/mikmod/mikmod.c
index 63d575a958..5f19b43759 100644
--- a/apps/plugins/mikmod/mikmod.c
+++ b/apps/plugins/mikmod/mikmod.c
@@ -115,11 +115,11 @@ void mmsupp_printf(const char *fmt, ...)
{
static int p_xtpt = 0;
char p_buf[LINE_LENGTH];
- bool ok;
+ /* bool ok; */
va_list ap;
va_start(ap, fmt);
- ok = rb->vsnprintf(p_buf, sizeof(p_buf), fmt, ap);
+ /* ok = */ (void)rb->vsnprintf(p_buf, sizeof(p_buf), fmt, ap);
va_end(ap);
int i=0;
diff --git a/apps/plugins/mikmod/mlutil.c b/apps/plugins/mikmod/mlutil.c
index 114deb6b24..ddaddc7871 100644
--- a/apps/plugins/mikmod/mlutil.c
+++ b/apps/plugins/mikmod/mlutil.c
@@ -143,10 +143,10 @@ void S3MIT_CreateOrders(int curious)
/* handles S3M and IT effects */
void S3MIT_ProcessCmd(UBYTE cmd,UBYTE inf,unsigned int flags)
{
- UBYTE hi,lo;
+ UBYTE /* hi,*/ lo;
lo=inf&0xf;
- hi=inf>>4;
+ /* hi=inf>>4; */
/* process S3M / IT specific command structure */