diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-09-03 23:17:42 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-09-03 23:17:42 +0000 |
commit | e2186479d56762d097b943696423ad8588ca7f92 (patch) | |
tree | 833fb9909a1842e1eb216a695d7bc507855be4e5 /apps/plugins/mikmod/load_mtm.c | |
parent | 7887e596a99fcaf2198d624bfedf5e2ad97a49cd (diff) | |
download | rockbox-e2186479d56762d097b943696423ad8588ca7f92.tar.gz rockbox-e2186479d56762d097b943696423ad8588ca7f92.zip |
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
Diffstat (limited to 'apps/plugins/mikmod/load_mtm.c')
-rw-r--r-- | apps/plugins/mikmod/load_mtm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/mikmod/load_mtm.c b/apps/plugins/mikmod/load_mtm.c index abd1da41f5..bd6223d948 100644 --- a/apps/plugins/mikmod/load_mtm.c +++ b/apps/plugins/mikmod/load_mtm.c | |||
@@ -145,6 +145,7 @@ int MTM_Load(int curious) | |||
145 | int t,u; | 145 | int t,u; |
146 | MTMSAMPLE s; | 146 | MTMSAMPLE s; |
147 | SAMPLE *q; | 147 | SAMPLE *q; |
148 | (void)curious; | ||
148 | 149 | ||
149 | /* try to read module header */ | 150 | /* try to read module header */ |
150 | _mm_read_UBYTES(mh->id,3,modreader); | 151 | _mm_read_UBYTES(mh->id,3,modreader); |
@@ -219,7 +220,7 @@ int MTM_Load(int curious) | |||
219 | if(!AllocPositions(of.numpos)) return 0; | 220 | if(!AllocPositions(of.numpos)) return 0; |
220 | for(t=0;t<of.numpos;t++) | 221 | for(t=0;t<of.numpos;t++) |
221 | of.positions[t]=_mm_read_UBYTE(modreader); | 222 | of.positions[t]=_mm_read_UBYTE(modreader); |
222 | for(;t<128;t++) _mm_read_UBYTE(modreader); | 223 | for(;t<128;t++) (void)_mm_read_UBYTE(modreader); |
223 | if(_mm_eof(modreader)) { | 224 | if(_mm_eof(modreader)) { |
224 | _mm_errno = MMERR_LOADING_HEADER; | 225 | _mm_errno = MMERR_LOADING_HEADER; |
225 | return 0; | 226 | return 0; |