aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2017-02-02 16:35:40 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-10-11 07:33:46 +1100
commit6c96f3b13a4901ae7e060203cfa26d2c7ccc68a4 (patch)
tree6bd3fa52d33cd8b2dde90a08102919d76c3d4422
parentf4f8e6d29cbcc1c205a12d7c792abdaf4f8fec33 (diff)
downloadskiboot-6c96f3b13a4901ae7e060203cfa26d2c7ccc68a4.zip
skiboot-6c96f3b13a4901ae7e060203cfa26d2c7ccc68a4.tar.gz
skiboot-6c96f3b13a4901ae7e060203cfa26d2c7ccc68a4.tar.bz2
libc/stdio/vsnprintf.c: add explicit fallthrough
silences recent GCC warning Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com> (cherry picked from commit 11cf409be293091470b3f75619416e2bb2697265) Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r--libc/stdio/vsnprintf.c1
1 files changed, 1 insertions, 0 deletions
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];