diff mbox

libc/stdio/vsnprintf.c: add explicit fallthrough

Message ID 20170202062720.29608-1-stewart@linux.vnet.ibm.com
State Accepted
Headers show

Commit Message

Stewart Smith Feb. 2, 2017, 6:27 a.m. UTC
silences recent GCC warning

Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
---
 libc/stdio/vsnprintf.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/libc/stdio/vsnprintf.c b/libc/stdio/vsnprintf.c
index 38d5281..410a806 100644
--- a/libc/stdio/vsnprintf.c
+++ b/libc/stdio/vsnprintf.c
@@ -164,6 +164,7 @@  print_format(char **buffer, size_t bufsize, const char *format, void *var)
 				break;
 			case 'X':
 				upper = true;
+				/* fallthrough */
 			case 'x':
 				sizec[i] = '\0';
 				value = (unsigned long) var & convert[length_mod];