From bc99db8233ea65993be31b59c26d2e7626c90d29 Mon Sep 17 00:00:00 2001 From: Marek Bel Date: Fri, 13 Jul 2018 18:35:42 +0200 Subject: [PATCH] Fix compiler warning: sketch/uart2.c:48:1: warning: control reaches end of non-void function [-Wreturn-type] --- Firmware/uart2.c | 2 +- Firmware/uart2.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Firmware/uart2.c b/Firmware/uart2.c index e12b254a..e6d5c3f8 100644 --- a/Firmware/uart2.c +++ b/Firmware/uart2.c @@ -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 } -uint8_t uart2_rx_clr(void) +void uart2_rx_clr(void) { rbuf_w(uart2_ibuf) = 0; rbuf_r(uart2_ibuf) = 0; diff --git a/Firmware/uart2.h b/Firmware/uart2.h index e5455148..95a1bff9 100644 --- a/Firmware/uart2.h +++ b/Firmware/uart2.h @@ -18,7 +18,7 @@ extern FILE _uart2io; 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); @@ -26,4 +26,4 @@ extern uint8_t uart2_rx_ok(void); #if defined(__cplusplus) } #endif //defined(__cplusplus) -#endif //_UART2_H \ No newline at end of file +#endif //_UART2_H