forked from len0rd/rockbox
misc: Fix some assorted compiler warnings
Change-Id: Ibc4aac79e6fce92ad4414ed50122c2d4d6295f89
This commit is contained in:
parent
e18425197e
commit
3e209f34e4
4 changed files with 7 additions and 5 deletions
|
@ -127,13 +127,13 @@ static int codec_check_queue__have_msg(void)
|
||||||
switch (ev.id)
|
switch (ev.id)
|
||||||
{
|
{
|
||||||
case Q_CODEC_SEEK:
|
case Q_CODEC_SEEK:
|
||||||
LOGFQUEUE("codec - Q_CODEC_SEEK", ev.id);
|
LOGFQUEUE("codec - Q_CODEC_SEEK %ld", ev.id);
|
||||||
return -1;
|
return -1;
|
||||||
case Q_CODEC_PAUSE:
|
case Q_CODEC_PAUSE:
|
||||||
LOGFQUEUE("codec - Q_CODEC_PAUSE", ev.id);
|
LOGFQUEUE("codec - Q_CODEC_PAUSE %ld", ev.id);
|
||||||
return -1;
|
return -1;
|
||||||
case Q_CODEC_STOP:
|
case Q_CODEC_STOP:
|
||||||
LOGFQUEUE("codec - Q_CODEC_STOP", ev.id);
|
LOGFQUEUE("codec - Q_CODEC_STOP %ld", ev.id);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -694,6 +694,7 @@ int storage_spinup_time(void)
|
||||||
#if (CONFIG_STORAGE & STORAGE_SD)
|
#if (CONFIG_STORAGE & STORAGE_SD)
|
||||||
//t=sd_spinup_time();
|
//t=sd_spinup_time();
|
||||||
//if (t>max) max=t;
|
//if (t>max) max=t;
|
||||||
|
(void)t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (CONFIG_STORAGE & STORAGE_NAND)
|
#if (CONFIG_STORAGE & STORAGE_NAND)
|
||||||
|
|
|
@ -70,7 +70,7 @@ int main(int argc, char **argv)
|
||||||
insize = ftell(fin);
|
insize = ftell(fin);
|
||||||
fseek(fin, 0, SEEK_SET);
|
fseek(fin, 0, SEEK_SET);
|
||||||
indata = malloc(insize);
|
indata = malloc(insize);
|
||||||
fread(indata, 1, insize, fin);
|
insize = fread(indata, 1, insize, fin);
|
||||||
fclose(fin);
|
fclose(fin);
|
||||||
|
|
||||||
/* fill in wav header */
|
/* fill in wav header */
|
||||||
|
|
|
@ -103,7 +103,8 @@ int voicefont(FILE* voicefontids,int targetnum,char* filedir, FILE* output, unsi
|
||||||
memset(voiceonly, 0, sizeof(voiceonly));
|
memset(voiceonly, 0, sizeof(voiceonly));
|
||||||
while (!feof(voicefontids))
|
while (!feof(voicefontids))
|
||||||
{
|
{
|
||||||
fgets(line, sizeof(line), voicefontids);
|
if (!fgets(line, sizeof(line), voicefontids))
|
||||||
|
break;
|
||||||
if (line[0] == '#') /* comment */
|
if (line[0] == '#') /* comment */
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue