summaryrefslogtreecommitdiff
path: root/apps/plugins/mikmod/load_gt2.c
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-09-03 23:17:42 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-09-03 23:17:42 +0000
commite2186479d56762d097b943696423ad8588ca7f92 (patch)
tree833fb9909a1842e1eb216a695d7bc507855be4e5 /apps/plugins/mikmod/load_gt2.c
parent7887e596a99fcaf2198d624bfedf5e2ad97a49cd (diff)
downloadrockbox-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_gt2.c')
-rw-r--r--apps/plugins/mikmod/load_gt2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/mikmod/load_gt2.c b/apps/plugins/mikmod/load_gt2.c
index 996de0e61e..9baef5c09b 100644
--- a/apps/plugins/mikmod/load_gt2.c
+++ b/apps/plugins/mikmod/load_gt2.c
@@ -217,7 +217,7 @@ GT_CHUNK *loadChunk(void)
217 _mm_read_M_ULONGS(&new_chunk->gt2.chunk_size, 1, modreader); 217 _mm_read_M_ULONGS(&new_chunk->gt2.chunk_size, 1, modreader);
218 new_chunk->gt2.module_name[32] = 0; 218 new_chunk->gt2.module_name[32] = 0;
219 _mm_read_UBYTES(&new_chunk->gt2.module_name, 32, modreader); 219 _mm_read_UBYTES(&new_chunk->gt2.module_name, 32, modreader);
220 new_chunk->gt2.module_name[160] = 0; 220 new_chunk->gt2.comments_author[160] = 0;
221 _mm_read_UBYTES(&new_chunk->gt2.comments_author, 160, modreader); 221 _mm_read_UBYTES(&new_chunk->gt2.comments_author, 160, modreader);
222 _mm_read_UBYTES(&new_chunk->gt2.date_day, 1, modreader); 222 _mm_read_UBYTES(&new_chunk->gt2.date_day, 1, modreader);
223 _mm_read_UBYTES(&new_chunk->gt2.date_month, 1, modreader); 223 _mm_read_UBYTES(&new_chunk->gt2.date_month, 1, modreader);
@@ -332,6 +332,7 @@ int GT2_Test(void)
332int GT2_Load(int curious) 332int GT2_Load(int curious)
333{ 333{
334 GT_CHUNK *tmp; 334 GT_CHUNK *tmp;
335 (void)curious;
335 336
336 _mm_fseek(modreader, 0, SEEK_SET); 337 _mm_fseek(modreader, 0, SEEK_SET);
337 while ( (tmp = loadChunk() )) 338 while ( (tmp = loadChunk() ))