From 182b6386f93516e7ae5e1a33027236716d19a216 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Mon, 27 Aug 2012 16:47:27 -0400 Subject: usb_serial.cpp: Hackishly silence spurious warnings on VLDiscovery. Guard hooks with BOARD_HAVE_SERIALUSB to keep GCC quiet. Signed-off-by: Marti Bolivar --- wirish/usb_serial.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wirish/usb_serial.cpp b/wirish/usb_serial.cpp index af0d710..380f197 100644 --- a/wirish/usb_serial.cpp +++ b/wirish/usb_serial.cpp @@ -43,8 +43,10 @@ * Hooks used for bootloader reset signalling */ +#if BOARD_HAVE_SERIALUSB static void rxHook(unsigned, void*); static void ifaceSetupHook(unsigned, void*); +#endif /* * USBSerial interface @@ -147,6 +149,8 @@ USBSerial SerialUSB; * Bootloader hook implementations */ +#if BOARD_HAVE_SERIALUSB + enum reset_state_t { DTR_UNSET, DTR_HIGH, @@ -241,3 +245,5 @@ static void rxHook(unsigned hook, void *ignored) { } } } + +#endif // BOARD_HAVE_SERIALUSB -- cgit v1.2.3