[Skiboot] [PATCH] libc/stdio/vsnprintf.c: add explicit fallthrough

Stewart Smith stewart at linux.vnet.ibm.com
Thu Feb 2 17:27:20 AEDT 2017


silences recent GCC warning

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

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];
-- 
2.9.3



More information about the Skiboot mailing list