forked from len0rd/rockbox
portalplayer: Fix three set-but-not-used warnings.
(They show up when building with gcc494) Change-Id: Id5e2bccf18114ed78a557ac1b369f46b4f07d042
This commit is contained in:
parent
495c8e2a69
commit
2d57bfba36
3 changed files with 8 additions and 1 deletions
|
@ -1480,6 +1480,7 @@ void iap_handlepkt_mode4(const unsigned int len, const unsigned char *buf)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
(void)len; /* Shut up, compiler */
|
||||||
put_u32(&data[3], start_index+counter);
|
put_u32(&data[3], start_index+counter);
|
||||||
iap_send_pkt(data, 7 + strlen(data+7) + 1);
|
iap_send_pkt(data, 7 + strlen(data+7) + 1);
|
||||||
yield();
|
yield();
|
||||||
|
|
|
@ -53,8 +53,10 @@ void audio_input_mux(int source, unsigned flags)
|
||||||
{
|
{
|
||||||
(void)flags;
|
(void)flags;
|
||||||
/* Prevent pops from unneeded switching */
|
/* Prevent pops from unneeded switching */
|
||||||
|
#ifdef HAVE_RECORDING
|
||||||
static int last_source = AUDIO_SRC_PLAYBACK;
|
static int last_source = AUDIO_SRC_PLAYBACK;
|
||||||
#ifdef HAVE_FMRADIO_REC
|
#endif
|
||||||
|
#ifdef HAVE_FMRADIO_REC
|
||||||
bool recording = flags & SRCF_RECORDING;
|
bool recording = flags & SRCF_RECORDING;
|
||||||
static bool last_recording = false;
|
static bool last_recording = false;
|
||||||
#endif
|
#endif
|
||||||
|
@ -149,7 +151,9 @@ void audio_input_mux(int source, unsigned flags)
|
||||||
#endif
|
#endif
|
||||||
} /* end switch */
|
} /* end switch */
|
||||||
|
|
||||||
|
#ifdef HAVE_RECORDING
|
||||||
last_source = source;
|
last_source = source;
|
||||||
|
#endif
|
||||||
} /* audio_input_mux */
|
} /* audio_input_mux */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -143,6 +143,8 @@ void serial_setup (void)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
(void)tmp;
|
||||||
|
|
||||||
serial_bitrate(0);
|
serial_bitrate(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue