summaryrefslogtreecommitdiff
path: root/lib/libc/printf.c
diff options
context:
space:
mode:
authorSoby Mathew <soby.mathew@arm.com>2018-10-03 15:36:37 +0100
committerGitHub <noreply@github.com>2018-10-03 15:36:37 +0100
commit3ed87a496adb58605c4ea89c03688b6a08c5f0b0 (patch)
tree23bf112f61b4056ca93789607f1f2b22920b6b4f /lib/libc/printf.c
parenta4277cda5c7f57a7205f4c29edbb488d518c29b5 (diff)
parenta08a2014300a495381cdb8f6d59523bcd5d3b883 (diff)
Merge pull request #1584 from danielboulby-arm/db/Switches
Ensure the flow through switch statements is clear
Diffstat (limited to 'lib/libc/printf.c')
-rw-r--r--lib/libc/printf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/printf.c b/lib/libc/printf.c
index 4480e94d..d50876d7 100644
--- a/lib/libc/printf.c
+++ b/lib/libc/printf.c
@@ -166,6 +166,7 @@ loop:
padn = (padn * 10) + (ch - '0');
fmt++;
}
+ assert(0); /* Unreachable */
default:
/* Exit on any other format specifier */
return -1;