From b9aad1757bf4e61b0f7cc1835357bcf037349c3f Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Mon, 7 Aug 2017 09:33:28 +0200 Subject: [PATCH] remove compiler warnings --- arch/x86/loader/uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/loader/uart.c b/arch/x86/loader/uart.c index 5d0599843..2437fd2ff 100644 --- a/arch/x86/loader/uart.c +++ b/arch/x86/loader/uart.c @@ -96,7 +96,7 @@ size_t uartport = 0; static inline unsigned char read_from_uart(uint32_t off) { - uint8_t c; + uint8_t c = 0; if (uartport) c = inportb(uartport + off);