From f4d1a6a33bae1c90a5edc2e4227aa99b8fbe9699 Mon Sep 17 00:00:00 2001 From: Nico Tonnhofer Date: Thu, 20 Jul 2017 21:19:00 +0200 Subject: [PATCH] usb_serial.c: Avoid inline error We've got with -Winline: usb_serial.c:761:13: error: inlining failed in call to 'usb_wait_in_ready': call is unlikely and code size would grow [-Werror=inline] We want to inline this in the USB ISR. So let's force it and prevent the error. --- usb_serial.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usb_serial.c b/usb_serial.c index dcfe5da..a44eb7e 100644 --- a/usb_serial.c +++ b/usb_serial.c @@ -757,6 +757,7 @@ ISR(USB_GEN_vect) // Misc functions to wait for ready and send/receive packets +static void usb_wait_in_ready(void) __attribute__ ((always_inline)); inline void usb_wait_in_ready(void) { while (!(UEINTX & (1<