Fix two variable-set-but-not-used warnings

(found using -Os with gcc494 on the nano2g)

Change-Id: If0deee3e3cde50e6bf5aff595bebc0f134dcc393
This commit is contained in:
Solomon Peachy 2020-07-24 23:02:33 -04:00
parent 469866b6c9
commit a84176122c
2 changed files with 5 additions and 0 deletions

View file

@ -40,6 +40,7 @@ enum plugin_status plugin_start(const void* parameter)
int j,x; int j,x;
for (j=1; j<100000; j++) for (j=1; j<100000; j++)
x = j*11; x = j*11;
(void)x;
rb->screens[0]->clear_display(); rb->screens[0]->clear_display();
rb->screens[0]->putsf(0, 0, "%s: %d",boost?"boost":"normal",count); rb->screens[0]->putsf(0, 0, "%s: %d",boost?"boost":"normal",count);
if (TIME_AFTER(*rb->current_tick, last_tick+HZ)) if (TIME_AFTER(*rb->current_tick, last_tick+HZ))

View file

@ -33,8 +33,10 @@ void audio_set_output_source(int source)
void audio_input_mux(int source, unsigned flags) void audio_input_mux(int source, unsigned flags)
{ {
(void)flags; (void)flags;
#ifdef HAVE_RECORDING
/* Prevent pops from unneeded switching */ /* Prevent pops from unneeded switching */
static int last_source = AUDIO_SRC_PLAYBACK; static int last_source = AUDIO_SRC_PLAYBACK;
#endif
switch (source) switch (source)
{ {
@ -60,6 +62,8 @@ void audio_input_mux(int source, unsigned flags)
#endif #endif
} /* end switch */ } /* end switch */
#ifdef HAVE_RECORDING
last_source = source; last_source = source;
#endif
} /* audio_input_mux */ } /* audio_input_mux */
#endif /* INPUT_SRC_CAPS != 0 */ #endif /* INPUT_SRC_CAPS != 0 */