mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 21:25:19 -05:00
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
This commit is contained in:
parent
7887e596a9
commit
e2186479d5
27 changed files with 239 additions and 58 deletions
|
|
@ -217,7 +217,7 @@ GT_CHUNK *loadChunk(void)
|
|||
_mm_read_M_ULONGS(&new_chunk->gt2.chunk_size, 1, modreader);
|
||||
new_chunk->gt2.module_name[32] = 0;
|
||||
_mm_read_UBYTES(&new_chunk->gt2.module_name, 32, modreader);
|
||||
new_chunk->gt2.module_name[160] = 0;
|
||||
new_chunk->gt2.comments_author[160] = 0;
|
||||
_mm_read_UBYTES(&new_chunk->gt2.comments_author, 160, modreader);
|
||||
_mm_read_UBYTES(&new_chunk->gt2.date_day, 1, modreader);
|
||||
_mm_read_UBYTES(&new_chunk->gt2.date_month, 1, modreader);
|
||||
|
|
@ -332,6 +332,7 @@ int GT2_Test(void)
|
|||
int GT2_Load(int curious)
|
||||
{
|
||||
GT_CHUNK *tmp;
|
||||
(void)curious;
|
||||
|
||||
_mm_fseek(modreader, 0, SEEK_SET);
|
||||
while ( (tmp = loadChunk() ))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue