From e2186479d56762d097b943696423ad8588ca7f92 Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Sat, 3 Sep 2011 23:17:42 +0000 Subject: FS#12259: Remove '-w' compiler option for MikMod. Resolve all yet unreported compiler warnings and fix a bug in load_gt2. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30424 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/mikmod/load_asy.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'apps/plugins/mikmod/load_asy.c') diff --git a/apps/plugins/mikmod/load_asy.c b/apps/plugins/mikmod/load_asy.c index 356a686d92..46e899f6bd 100644 --- a/apps/plugins/mikmod/load_asy.c +++ b/apps/plugins/mikmod/load_asy.c @@ -237,7 +237,8 @@ static UBYTE *ConvertTrack(MODNOTE *n) /* Loads all patterns of a modfile and converts them into the 3 byte format. */ static int ML_LoadPatterns(void) { - int t, s, tracks = 0; + int t, tracks = 0; + unsigned int s; if (!AllocPatterns()) { return 0; @@ -277,6 +278,7 @@ static int ASY_Load(int curious) MSAMPINFO *s; CHAR *descr=asylum; ULONG seekpos; + (void)curious; // no title in asylum amf files :( strcpy(mh->songname, ""); @@ -286,7 +288,7 @@ static int ASY_Load(int curious) mh->num_orders = _mm_read_UBYTE(modreader); // skip unknown byte - _mm_read_UBYTE(modreader); + (void)_mm_read_UBYTE(modreader); _mm_read_UBYTES(mh->positions, 256, modreader); /* read samples headers*/ @@ -300,7 +302,7 @@ static int ASY_Load(int curious) s->finetune = _mm_read_UBYTE(modreader); s->volume = _mm_read_UBYTE(modreader); - _mm_read_UBYTE(modreader); // skip unknown byte + (void)_mm_read_UBYTE(modreader); // skip unknown byte s->length = _mm_read_I_ULONG(modreader); s->reppos = _mm_read_I_ULONG(modreader); s->replen = _mm_read_I_ULONG(modreader); -- cgit v1.2.3