9307 rdist: this statement may fall through

Review Request #970 — Created March 18, 2018 and submitted — Latest diff uploaded

tsoome
illumos-gate
9307
ceb3308...
general
server.c:220:4: error: this statement may fall through [-Werror=implicit-fallthrough=]
    error("server: unknown command '%s'\n", cp);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
server.c:221:3: note: here
   case '\0':
   ^~~~
server.c: In function 'response':
server.c:1621:4: error: this statement may fall through [-Werror=implicit-fallthrough=]
   s--;
   ~^~
server.c:1623:2: note: here
  case '\1':
  ^~~~

gram.y:206:6: error: this statement may fall through [-Werror=implicit-fallthrough=]
   if (c == EOF)
      ^
gram.y:208:2: note: here
  case '\n':
  ^~~~

cc1: all warnings being treated as errors


Loading...