diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-07-24 18:29:04 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-07-24 18:29:04 -0400 |
commit | 2127906384d618e032692becba10aeda1b3e1974 (patch) | |
tree | 7c71e84ae1987792e602fe712e8f17a5f93530ee | |
parent | a3398a21435045fb6af1af14cc5638fd0cb52119 (diff) | |
download | rockbox-2127906384d618e032692becba10aeda1b3e1974.tar.gz rockbox-2127906384d618e032692becba10aeda1b3e1974.zip |
peakmeter: Fix warning on some hosted targets
Change-Id: Ieae0b08a2f747955ad3e392fbff90884dc4265ef
-rw-r--r-- | apps/recorder/peakmeter.c | 11 |
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 @@ | |||
46 | #include "pcm_record.h" | 46 | #include "pcm_record.h" |
47 | #endif | 47 | #endif |
48 | 48 | ||
49 | #if !(CONFIG_PLATFORM & PLATFORM_HOSTED) | ||
49 | static bool pm_playback = true; /* selects between playback and recording peaks */ | 50 | static bool pm_playback = true; /* selects between playback and recording peaks */ |
51 | #endif | ||
50 | 52 | ||
51 | static struct meter_scales scales[NB_SCREENS]; | 53 | static struct meter_scales scales[NB_SCREENS]; |
52 | 54 | ||
@@ -1074,9 +1076,12 @@ static void peak_meter_draw(struct screen *display, struct meter_scales *scales, | |||
1074 | 1076 | ||
1075 | #ifdef HAVE_BACKLIGHT | 1077 | #ifdef HAVE_BACKLIGHT |
1076 | /* cliplight */ | 1078 | /* cliplight */ |
1077 | if ((pm_clip_left || pm_clip_right) && | 1079 | if ((pm_clip_left || pm_clip_right) && |
1078 | global_settings.cliplight && | 1080 | global_settings.cliplight |
1079 | !pm_playback) | 1081 | #if !(CONFIG_PLATFORM & PLATFORM_HOSTED) |
1082 | && !pm_playback | ||
1083 | #endif | ||
1084 | ) | ||
1080 | { | 1085 | { |
1081 | /* if clipping, cliplight setting on and in recording screen */ | 1086 | /* if clipping, cliplight setting on and in recording screen */ |
1082 | if (global_settings.cliplight <= 2) | 1087 | if (global_settings.cliplight <= 2) |