commit d165456a0232fb18826b005057dec01b00a77926
parent 853fd59057aec284f2e51db4295afc7f236a5505
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Tue, 29 Aug 2017 15:29:49 +0100
[cc1] Remove PASSTHROUGH comments
Thanks to dwmuser to remind me that I had to remove these stupid
comments that only are useful for people like him. Remember,
break is a hint to indicate that its not doing a PASSTHROUGH.
Diffstat:
5 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/cc1/expr.c b/cc1/expr.c
@@ -257,7 +257,6 @@ convert(Node *np, Type *newtp, int iscast)
case PTR:
if (oldtp->op == FLOAT || !cmpnode(np, 0) && !iscast)
return NULL;
- /* PASSTHROUGH */
case INT:
case FLOAT:
case ENUM:
diff --git a/cc1/stmt.c b/cc1/stmt.c
@@ -330,7 +330,6 @@ blockit(Symbol *lbreak, Symbol *lcont, Switch *lswitch)
case TYPEIDEN:
if (ahead() == ':')
goto parse_stmt;
- /* PASSTHROUGH */
case TYPE:
case TQUALIFIER:
case SCLASS:
diff --git a/cc1/types.c b/cc1/types.c
@@ -136,7 +136,6 @@ ctype(unsigned type, unsigned sign, unsigned size)
goto invalid_type;
return booltype;
case 0:
- /* fallthrough */
case INT:
switch (size) {
case 0:
diff --git a/driver/posix/scc.c b/driver/posix/scc.c
@@ -118,7 +118,7 @@ inittool(int tool)
return tool;
switch (tool) {
- case CC1: /* FALLTHROUGH */
+ case CC1:
case CC2:
fmt = (qbe(tool)) ? "%s-qbe_%s-%s" : "%s-%s-%s";
n = snprintf(t->bin, sizeof(t->bin), fmt, t->cmd, arch, abi);
diff --git a/lib/c/src/vfprintf.c b/lib/c/src/vfprintf.c
@@ -64,7 +64,6 @@ vfprintf(FILE * restrict fp, const char *fmt, va_list va)
s = va_arg(va, char *);
while ((c = *s++) != '\0')
putc(c, fp);
- /* passthrou */
default:
continue;
}