summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-07-24 18:29:04 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-07-24 18:29:04 -0400
commit2127906384d618e032692becba10aeda1b3e1974 (patch)
tree7c71e84ae1987792e602fe712e8f17a5f93530ee
parenta3398a21435045fb6af1af14cc5638fd0cb52119 (diff)
downloadrockbox-2127906384.tar.gz
rockbox-2127906384.zip
peakmeter: Fix warning on some hosted targets
Change-Id: Ieae0b08a2f747955ad3e392fbff90884dc4265ef
-rw-r--r--apps/recorder/peakmeter.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/apps/recorder/peakmeter.c b/apps/recorder/peakmeter.c
index 6539330928..c9c0254f2a 100644
--- a/apps/recorder/peakmeter.c
+++ b/apps/recorder/peakmeter.c
@@ -46,7 +46,9 @@
#include "pcm_record.h"
#endif
+#if !(CONFIG_PLATFORM & PLATFORM_HOSTED)
static bool pm_playback = true; /* selects between playback and recording peaks */
+#endif
static struct meter_scales scales[NB_SCREENS];
@@ -1074,9 +1076,12 @@ static void peak_meter_draw(struct screen *display, struct meter_scales *scales,
#ifdef HAVE_BACKLIGHT
/* cliplight */
- if ((pm_clip_left || pm_clip_right) &&
- global_settings.cliplight &&
- !pm_playback)
+ if ((pm_clip_left || pm_clip_right) &&
+ global_settings.cliplight
+#if !(CONFIG_PLATFORM & PLATFORM_HOSTED)
+ && !pm_playback
+#endif
+ )
{
/* if clipping, cliplight setting on and in recording screen */
if (global_settings.cliplight <= 2)