Kaydet (Commit) b593c9c5 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

-Werror=implicit-fallthrough= (GCC 7)

Change-Id: I9d6c7e5a03aea56d8db84c2ba06c63efb0e007fa
üst cf06348d
...@@ -278,6 +278,7 @@ int MAIN(int argc, char** argv) ...@@ -278,6 +278,7 @@ int MAIN(int argc, char** argv)
} }
} /* Continue by opening output */ } /* Continue by opening output */
} }
/* fall through */
#endif #endif
case 3: case 3:
/* /*
...@@ -293,6 +294,7 @@ int MAIN(int argc, char** argv) ...@@ -293,6 +294,7 @@ int MAIN(int argc, char** argv)
exit(IO_ERROR); exit(IO_ERROR);
} }
} /* Continue by opening input */ } /* Continue by opening input */
/* fall through */
case 2: /* One file -> stdin */ case 2: /* One file -> stdin */
/* /*
* Open input file, "-" means use stdin. * Open input file, "-" means use stdin.
...@@ -309,6 +311,7 @@ int MAIN(int argc, char** argv) ...@@ -309,6 +311,7 @@ int MAIN(int argc, char** argv)
strncpy(work, useargv[1], NWORK); /* Remember input filename */ strncpy(work, useargv[1], NWORK); /* Remember input filename */
break; break;
} /* Else, just get stdin */ } /* Else, just get stdin */
/* fall through */
case 0: /* No args? */ case 0: /* No args? */
case 1: /* No files, stdin -> stdout */ case 1: /* No files, stdin -> stdout */
work[0] = EOS; /* Unix can't find stdin name */ work[0] = EOS; /* Unix can't find stdin name */
......
...@@ -120,6 +120,7 @@ int control(int counter) ...@@ -120,6 +120,7 @@ int control(int counter)
if (++ifptr >= &ifstack[BLK_NEST]) if (++ifptr >= &ifstack[BLK_NEST])
goto if_nest_err; goto if_nest_err;
*ifptr = 0; /* !WAS_COMPILING */ *ifptr = 0; /* !WAS_COMPILING */
/* fall through */
case L_line: /* Many */ case L_line: /* Many */
/* /*
* Are pragma's always processed? * Are pragma's always processed?
......
...@@ -190,7 +190,7 @@ void dodefine() ...@@ -190,7 +190,7 @@ void dodefine()
break; /* spaces */ break; /* spaces */
else if (c == '\t') else if (c == '\t')
c = ' '; /* Normalize tabs */ c = ' '; /* Normalize tabs */
/* Fall through to store character */ /* fall through *//* to store character */
default: /* Other character */ default: /* Other character */
save(c); save(c);
break; break;
...@@ -461,6 +461,7 @@ void expand(DEFBUF* tokenp) ...@@ -461,6 +461,7 @@ void expand(DEFBUF* tokenp)
dumpparm("expand"); dumpparm("expand");
#endif #endif
} /* Collect arguments */ } /* Collect arguments */
/* fall through */
case DEF_NOARGS: /* No parameters just stuffs */ case DEF_NOARGS: /* No parameters just stuffs */
expstuff(tokenp); /* Do actual parameters */ expstuff(tokenp); /* Do actual parameters */
} /* nargs switch */ } /* nargs switch */
......
...@@ -352,6 +352,7 @@ again: ...@@ -352,6 +352,7 @@ again:
opname[(int)opp->op]); opname[(int)opp->op]);
return 1; return 1;
} }
/* fall through */
/* /*
* Evaluate op1. * Evaluate op1.
*/ */
......
...@@ -902,7 +902,7 @@ int get() ...@@ -902,7 +902,7 @@ int get()
#ifdef STRICT_COMMENTS #ifdef STRICT_COMMENTS
cwarn("Nested comments", NULLST); cwarn("Nested comments", NULLST);
#endif #endif
/* Fall into * stuff */ /* fall through *//* into * stuff */
case '*': case '*':
if ((c = get()) != '/') /* If comment doesn't */ if ((c = get()) != '/') /* If comment doesn't */
goto test; /* end, look at next */ goto test; /* end, look at next */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment