From b442ffba40cef5fa5a5e1bd6c13b5e30b06b28e2 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Tue, 27 May 2014 15:48:57 +0200 Subject: Fix compiler warnings --- uart.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'uart.c') diff --git a/uart.c b/uart.c index 3528a22..2eebe16 100644 --- a/uart.c +++ b/uart.c @@ -13,7 +13,7 @@ static void uartSend (unsigned char data) { UDR0 = data; } -static int uartPutc (char c, FILE *stream) { +static int uartPutc (char c, FILE *stream __unused__) { if (c == '\n') { uartSend ('\r'); } @@ -48,10 +48,12 @@ void uartInit () { stdout = &mystdout; } +#if 0 +/* unused */ static unsigned char uartReceive () { /* Wait for data to be received */ while ( !(UCSR0A & (1<