summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-07-05 11:39:10 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-07-05 17:15:57 +0000
commit2d57bfba36575ab3bb136324d0e0ea8c32cbd88f (patch)
tree7e4cb82de75e4fecca9ed4961c71512c627d0040
parent495c8e2a69902b37a2d41c31cbd75165152495ce (diff)
downloadrockbox-2d57bfba36575ab3bb136324d0e0ea8c32cbd88f.tar.gz
rockbox-2d57bfba36575ab3bb136324d0e0ea8c32cbd88f.tar.bz2
rockbox-2d57bfba36575ab3bb136324d0e0ea8c32cbd88f.zip
portalplayer: Fix three set-but-not-used warnings.
(They show up when building with gcc494) Change-Id: Id5e2bccf18114ed78a557ac1b369f46b4f07d042
-rw-r--r--apps/iap/iap-lingo4.c1
-rw-r--r--firmware/target/arm/pp/audio-pp.c6
-rw-r--r--firmware/target/arm/pp/uart-pp.c2
3 files changed, 8 insertions, 1 deletions
diff --git a/apps/iap/iap-lingo4.c b/apps/iap/iap-lingo4.c
index fa0196645b..903cef9378 100644
--- a/apps/iap/iap-lingo4.c
+++ b/apps/iap/iap-lingo4.c
@@ -1480,6 +1480,7 @@ void iap_handlepkt_mode4(const unsigned int len, const unsigned char *buf)
}
break;
}
+ (void)len; /* Shut up, compiler */
put_u32(&data[3], start_index+counter);
iap_send_pkt(data, 7 + strlen(data+7) + 1);
yield();
diff --git a/firmware/target/arm/pp/audio-pp.c b/firmware/target/arm/pp/audio-pp.c
index 76740f2e42..4e4d4b917a 100644
--- a/firmware/target/arm/pp/audio-pp.c
+++ b/firmware/target/arm/pp/audio-pp.c
@@ -53,8 +53,10 @@ void audio_input_mux(int source, unsigned flags)
{
(void)flags;
/* Prevent pops from unneeded switching */
+#ifdef HAVE_RECORDING
static int last_source = AUDIO_SRC_PLAYBACK;
-#ifdef HAVE_FMRADIO_REC
+#endif
+#ifdef HAVE_FMRADIO_REC
bool recording = flags & SRCF_RECORDING;
static bool last_recording = false;
#endif
@@ -149,7 +151,9 @@ void audio_input_mux(int source, unsigned flags)
#endif
} /* end switch */
+#ifdef HAVE_RECORDING
last_source = source;
+#endif
} /* audio_input_mux */
#endif
diff --git a/firmware/target/arm/pp/uart-pp.c b/firmware/target/arm/pp/uart-pp.c
index 069ae596a0..2820db0e88 100644
--- a/firmware/target/arm/pp/uart-pp.c
+++ b/firmware/target/arm/pp/uart-pp.c
@@ -143,6 +143,8 @@ void serial_setup (void)
#endif
+ (void)tmp;
+
serial_bitrate(0);
}