diff --git a/apps/plugins/test_boost.c b/apps/plugins/test_boost.c index b4beb5161a..bb9d943edf 100644 --- a/apps/plugins/test_boost.c +++ b/apps/plugins/test_boost.c @@ -40,6 +40,7 @@ enum plugin_status plugin_start(const void* parameter) int j,x; for (j=1; j<100000; j++) x = j*11; + (void)x; rb->screens[0]->clear_display(); rb->screens[0]->putsf(0, 0, "%s: %d",boost?"boost":"normal",count); if (TIME_AFTER(*rb->current_tick, last_tick+HZ)) diff --git a/firmware/target/arm/s5l8700/ipodnano2g/audio-nano2g.c b/firmware/target/arm/s5l8700/ipodnano2g/audio-nano2g.c index 402a60661e..876e046e11 100644 --- a/firmware/target/arm/s5l8700/ipodnano2g/audio-nano2g.c +++ b/firmware/target/arm/s5l8700/ipodnano2g/audio-nano2g.c @@ -33,8 +33,10 @@ void audio_set_output_source(int source) void audio_input_mux(int source, unsigned flags) { (void)flags; +#ifdef HAVE_RECORDING /* Prevent pops from unneeded switching */ static int last_source = AUDIO_SRC_PLAYBACK; +#endif switch (source) { @@ -60,6 +62,8 @@ void audio_input_mux(int source, unsigned flags) #endif } /* end switch */ +#ifdef HAVE_RECORDING last_source = source; +#endif } /* audio_input_mux */ #endif /* INPUT_SRC_CAPS != 0 */