From b979e699345c040235b2ec9c812e40e22ffe86ff Mon Sep 17 00:00:00 2001 From: Geert Uytterhoeven Date: Fri, 15 Jan 2021 11:46:01 +0100 Subject: [PATCH] software/libbase: Remove empty printf statements To fix compiler warnings of the following type: warning: zero-length gnu_printf format string [-Wformat-zero-length] Signed-off-by: Geert Uytterhoeven --- litex/soc/software/libbase/exception.c | 1 - litex/soc/software/libbase/progress.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/litex/soc/software/libbase/exception.c b/litex/soc/software/libbase/exception.c index 74a0ed14f..853e956a1 100644 --- a/litex/soc/software/libbase/exception.c +++ b/litex/soc/software/libbase/exception.c @@ -156,7 +156,6 @@ static void gdb_stub(unsigned long pc, unsigned long sr, } default: - snprintf(buf, sizeof(buf), ""); break; } diff --git a/litex/soc/software/libbase/progress.c b/litex/soc/software/libbase/progress.c index 829f07f0e..2c5bac3b4 100644 --- a/litex/soc/software/libbase/progress.c +++ b/litex/soc/software/libbase/progress.c @@ -61,6 +61,4 @@ void init_progression_bar(int max) spin = 0; if (progress_max && progress_max != FILESIZE_MAX) printf("[%*s]\r[", HASHES_PER_LINE, ""); - else - printf(""); }