From 53582e5a4337acf55690881dedc91508851e0d81 Mon Sep 17 00:00:00 2001 From: John Thomson Date: Sat, 24 Jun 2017 21:46:12 +1000 Subject: [PATCH] Fix fallthrough typo in XTF common/libc/vsnprintf.c fallthrough in one case is missing the r. This fails to suppress -Wimplicit-fallthrough warning with GCC7 common/libc/vsnprintf.c:388:19: error: this statement may fall through [-Werror=implicit-fallthrough=] flags |= SIGNED; ^ common/libc/vsnprintf.c:390:9: note: here case 'u': /* Unsigned decimal. */ ^~~~ cc1: all warnings being treated as errors Signed-off-by: John Thomson Reviewed-by: Andrew Cooper --- common/libc/vsnprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/libc/vsnprintf.c b/common/libc/vsnprintf.c index a3c2acf..72ca8a3 100644 --- a/common/libc/vsnprintf.c +++ b/common/libc/vsnprintf.c @@ -386,7 +386,7 @@ int vsnprintf(char *buf, size_t size, const char *fmt, va_list args) case 'd': case 'i': /* Signed decimal. */ flags |= SIGNED; - /* fallthough */ + /* fallthrough */ case 'u': /* Unsigned decimal. */ base = 10; break; -- 2.39.5