Fix compiler warning: sketch/uart2.c:48:1: warning: control reaches end of non-void function [-Wreturn-type]

This commit is contained in:
Marek Bel 2018-07-13 18:35:42 +02:00
parent f620a66211
commit bc99db8233
2 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ void uart2_init(void)
fdev_setup_stream(uart2io, uart2_putchar, uart2_getchar, _FDEV_SETUP_WRITE | _FDEV_SETUP_READ); //setup uart2 i/o stream fdev_setup_stream(uart2io, uart2_putchar, uart2_getchar, _FDEV_SETUP_WRITE | _FDEV_SETUP_READ); //setup uart2 i/o stream
} }
uint8_t uart2_rx_clr(void) void uart2_rx_clr(void)
{ {
rbuf_w(uart2_ibuf) = 0; rbuf_w(uart2_ibuf) = 0;
rbuf_r(uart2_ibuf) = 0; rbuf_r(uart2_ibuf) = 0;

View File

@ -18,7 +18,7 @@ extern FILE _uart2io;
extern void uart2_init(void); extern void uart2_init(void);
extern uint8_t uart2_rx_clr(void); extern void uart2_rx_clr(void);
extern uint8_t uart2_rx_ok(void); extern uint8_t uart2_rx_ok(void);