summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-07-24 23:02:33 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-07-24 23:26:15 -0400
commita84176122c2d9646c51637043d1d5e3d58a1e6be (patch)
tree828eb6809f54c7ea2071ea9ac2c01ac03a924cea /firmware/target/arm
parent469866b6c90c1de8a8581347a357e33a3dfd908c (diff)
downloadrockbox-a84176122c2d9646c51637043d1d5e3d58a1e6be.tar.gz
rockbox-a84176122c2d9646c51637043d1d5e3d58a1e6be.tar.bz2
rockbox-a84176122c2d9646c51637043d1d5e3d58a1e6be.zip
Fix two variable-set-but-not-used warnings
(found using -Os with gcc494 on the nano2g) Change-Id: If0deee3e3cde50e6bf5aff595bebc0f134dcc393
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/s5l8700/ipodnano2g/audio-nano2g.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/target/arm/s5l8700/ipodnano2g/audio-nano2g.c b/firmware/target/arm/s5l8700/ipodnano2g/audio-nano2g.c
index 402a60661e..876e046e11 100644
--- a/firmware/target/arm/s5l8700/ipodnano2g/audio-nano2g.c
+++ b/firmware/target/arm/s5l8700/ipodnano2g/audio-nano2g.c
@@ -33,8 +33,10 @@ void audio_set_output_source(int source)
void audio_input_mux(int source, unsigned flags)
{
(void)flags;
+#ifdef HAVE_RECORDING
/* Prevent pops from unneeded switching */
static int last_source = AUDIO_SRC_PLAYBACK;
+#endif
switch (source)
{
@@ -60,6 +62,8 @@ void audio_input_mux(int source, unsigned flags)
#endif
} /* end switch */
+#ifdef HAVE_RECORDING
last_source = source;
+#endif
} /* audio_input_mux */
#endif /* INPUT_SRC_CAPS != 0 */