From 2d57bfba36575ab3bb136324d0e0ea8c32cbd88f Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sun, 5 Jul 2020 11:39:10 -0400 Subject: portalplayer: Fix three set-but-not-used warnings. (They show up when building with gcc494) Change-Id: Id5e2bccf18114ed78a557ac1b369f46b4f07d042 --- firmware/target/arm/pp/audio-pp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'firmware/target/arm/pp/audio-pp.c') 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 -- cgit v1.2.3