diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-07-05 11:39:10 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-07-05 17:15:57 +0000 |
commit | 2d57bfba36575ab3bb136324d0e0ea8c32cbd88f (patch) | |
tree | 7e4cb82de75e4fecca9ed4961c71512c627d0040 /firmware/target/arm/pp/audio-pp.c | |
parent | 495c8e2a69902b37a2d41c31cbd75165152495ce (diff) | |
download | rockbox-2d57bfba36575ab3bb136324d0e0ea8c32cbd88f.tar.gz rockbox-2d57bfba36575ab3bb136324d0e0ea8c32cbd88f.zip |
portalplayer: Fix three set-but-not-used warnings.
(They show up when building with gcc494)
Change-Id: Id5e2bccf18114ed78a557ac1b369f46b4f07d042
Diffstat (limited to 'firmware/target/arm/pp/audio-pp.c')
-rw-r--r-- | firmware/target/arm/pp/audio-pp.c | 6 |
1 files changed, 5 insertions, 1 deletions
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) | |||
53 | { | 53 | { |
54 | (void)flags; | 54 | (void)flags; |
55 | /* Prevent pops from unneeded switching */ | 55 | /* Prevent pops from unneeded switching */ |
56 | #ifdef HAVE_RECORDING | ||
56 | static int last_source = AUDIO_SRC_PLAYBACK; | 57 | static int last_source = AUDIO_SRC_PLAYBACK; |
57 | #ifdef HAVE_FMRADIO_REC | 58 | #endif |
59 | #ifdef HAVE_FMRADIO_REC | ||
58 | bool recording = flags & SRCF_RECORDING; | 60 | bool recording = flags & SRCF_RECORDING; |
59 | static bool last_recording = false; | 61 | static bool last_recording = false; |
60 | #endif | 62 | #endif |
@@ -149,7 +151,9 @@ void audio_input_mux(int source, unsigned flags) | |||
149 | #endif | 151 | #endif |
150 | } /* end switch */ | 152 | } /* end switch */ |
151 | 153 | ||
154 | #ifdef HAVE_RECORDING | ||
152 | last_source = source; | 155 | last_source = source; |
156 | #endif | ||
153 | } /* audio_input_mux */ | 157 | } /* audio_input_mux */ |
154 | #endif | 158 | #endif |
155 | 159 | ||