Cleaned up some build warnings when NUM_USB_CHAN_OUT = 0

This commit is contained in:
Ross Owen
2017-08-24 10:12:07 +01:00
parent 383ab0b2eb
commit e3fd1601d7
2 changed files with 4 additions and 2 deletions

View File

@@ -180,7 +180,9 @@ void buffer(register chanend c_aud_out, register chanend c_aud_in,
unsigned expected_fb = 0;
#endif
#if (NUM_USB_CHAN_OUT > 0)
xc_ptr aud_from_host_buffer = 0;
#endif
#ifdef MIDI
xc_ptr midi_from_host_buffer = array_to_xc_ptr(g_midi_from_host_buffer);