]> xenbits.xensource.com Git - people/andrewcoop/xen-test-framework.git/commitdiff
Fix fallthrough typo in XTF common/libc/vsnprintf.c
authorJohn Thomson <git@johnthomson.fastmail.com.au>
Sat, 24 Jun 2017 11:46:12 +0000 (21:46 +1000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Sat, 24 Jun 2017 13:40:15 +0000 (14:40 +0100)
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@johnthomson.fastmail.com.au>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
common/libc/vsnprintf.c

index a3c2acfc4346e86125fdc6a8a60eb411666e0e21..72ca8a3ed1f6a509f27d15097b6b788cf782c646 100644 (file)
@@ -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;