Skip to content
This repository has been archived by the owner on Aug 27, 2023. It is now read-only.

Commit

Permalink
usb_serial.c: Avoid inline error
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Wurstnase committed Jul 20, 2017
1 parent a88bf4e commit f4d1a6a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions usb_serial.c
Expand Up @@ -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<<TXINI))) ;
Expand Down

0 comments on commit f4d1a6a

Please sign in to comment.