Comment fallthrough case statements so compilation succeeds with GCC 7.

GCC 7 Added a warning for implicit fallthroughs in switch cases.
It's enabled by -Wextra, and treated as an error due to -Werror so
compilation fails on GCC 7 and higher.
See -Wimplicit-fallthrough in the GCC manual.
This commit is contained in:
Jack Culhane
2019-05-17 17:00:48 +01:00
parent 9b69648921
commit 1f8269c0e2
6 changed files with 21 additions and 3 deletions

1
qio.c
View File

@@ -144,6 +144,7 @@ qprintf(char *fmt, ...)
case '-':
sign = -1;
ch = *fmt++;
/* fall through */
default:
if (('0' <= ch && ch <= '9') ||
ch == '.' || ch == '*') {