From 5357d66c93784e28e00d5970bb8dd0823f472051 Mon Sep 17 00:00:00 2001 From: Ilia Sergachev Date: Wed, 22 Dec 2021 02:54:32 +0100 Subject: [PATCH] software/libc: fix missing return --- litex/soc/software/libc/stdio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/litex/soc/software/libc/stdio.c b/litex/soc/software/libc/stdio.c index fb558a3ed..bab8d1d99 100644 --- a/litex/soc/software/libc/stdio.c +++ b/litex/soc/software/libc/stdio.c @@ -33,6 +33,7 @@ litex_getc(FILE *file) return uart_read(); #endif } + return -1; } static FILE __stdio = FDEV_SETUP_STREAM(litex_putc, litex_getc, NULL, _FDEV_SETUP_RW);