|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [XTF 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 <git@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
---
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 1931433..4ec0119 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.13.1
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |