peakmeter: Fix warning on some hosted targets

Change-Id: Ieae0b08a2f747955ad3e392fbff90884dc4265ef
This commit is contained in:
Solomon Peachy 2020-07-24 18:29:04 -04:00
parent a3398a2143
commit 2127906384

View file

@ -46,7 +46,9 @@
#include "pcm_record.h" #include "pcm_record.h"
#endif #endif
#if !(CONFIG_PLATFORM & PLATFORM_HOSTED)
static bool pm_playback = true; /* selects between playback and recording peaks */ static bool pm_playback = true; /* selects between playback and recording peaks */
#endif
static struct meter_scales scales[NB_SCREENS]; 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 #ifdef HAVE_BACKLIGHT
/* cliplight */ /* cliplight */
if ((pm_clip_left || pm_clip_right) && if ((pm_clip_left || pm_clip_right) &&
global_settings.cliplight && global_settings.cliplight
!pm_playback) #if !(CONFIG_PLATFORM & PLATFORM_HOSTED)
&& !pm_playback
#endif
)
{ {
/* if clipping, cliplight setting on and in recording screen */ /* if clipping, cliplight setting on and in recording screen */
if (global_settings.cliplight <= 2) if (global_settings.cliplight <= 2)